Browse Source

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

cuiyalong 1 năm trước cách đây
mục cha
commit
77c79621b8

+ 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) {
             if (window.opener && window.opener !== window) {
                 window.close()
                 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) {
         changeWxSwitch (val, key) {