소스 검색

change position

kaori 4 년 전
부모
커밋
2f0b8008d5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/app/src/components/InAppNotification/NotificationContent.tsx

+ 2 - 2
packages/app/src/components/InAppNotification/NotificationContent.tsx

@@ -16,11 +16,11 @@ interface Props {
 const notificationClickHandler = async(notification: IInAppNotification) => {
 
   try {
-    window.location.href = notification.target.path;
     // set notification status "STATUS_OPEND"
     await apiv3Post('/in-app-notification/open', { id: notification._id });
+
     // jump to target page
-    console.log('path', notification.target.path);
+    window.location.href = notification.target.path;
   }
   catch (err) {
     logger.error(err);