Selaa lähdekoodia

feat: 优化兴趣偏好设置跳转首页逻辑

cuiyalong 1 vuosi sitten
vanhempi
commit
77c79621b8
1 muutettua tiedostoa jossa 1 lisäystä ja 5 poistoa
  1. 1 5
      src/web/staticres/frontRouter/pc/user/js/set_favorite.js

+ 1 - 5
src/web/staticres/frontRouter/pc/user/js/set_favorite.js

@@ -359,11 +359,7 @@ var favorite = new Vue({
             if (window.opener && window.opener !== window) {
                 window.close()
             }
-            if (goTemplateData.inIframe) {
-                window.parent.location.href = '/?from=set_favorite'
-            } else {
-                location.href = '/?from=set_favorite'
-            }
+            window.top.location.href = '/?from=set_favorite'
         },
         // 变更微信提醒按钮
         changeWxSwitch (val, key) {