Browse Source

通过方法getToken()获取token

huangxiaojing 2 years ago
parent
commit
c3fcb9e02f
1 changed files with 6 additions and 2 deletions
  1. 6 2
      pages/activity/invite-user/guide.vue

+ 6 - 2
pages/activity/invite-user/guide.vue

@@ -23,8 +23,12 @@ export default {
       token: ''
     }
   },
-  fetch() {
-    this.token = this.$route.query.token;
+  async fetch() {
+    if (this.$userAgent.isAndroid) {
+      this.token = await window.native.getToken();
+    } else {
+      this.token = this.$route.query.token;
+    }
   },
   computed: {
     videoURL() {