Kaynağa Gözat

change position

kaori 4 yıl önce
ebeveyn
işleme
2f0b8008d5

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

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