Bladeren bron

修改bug

huangxiaojing 2 jaren geleden
bovenliggende
commit
9d357c80cd
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 3 2
      pages/activity/lottery/index.vue

+ 3 - 2
pages/activity/lottery/index.vue

@@ -295,10 +295,11 @@ export default {
     };
   },
   async fetch() {
+    if (this.$route.query.type === 'pc') {
+      this.$router.push({ path: '/activity/lottery/pc', query: {token: this.$route.query.token}})
+    }
     if (this.$userAgent.isAndroid) {
       this.token = await window.native.getToken();
-    } else if (window.isPC) {
-      this.$router.push({ path: '/activity/lottery/pc', query: {token: this.$route.query.token}})
     } else {
       this.token = this.$route.query.token;
     }