lrf402788946 4 years ago
parent
commit
89f96fb283
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/layout/common/share.vue

+ 2 - 2
src/layout/common/share.vue

@@ -23,7 +23,7 @@ export default {
   methods: {
     ...weixin(['jsAuth']),
     async init() {
-      console.log(this.$route);
+      console.log(this.$router);
       const { path, query } = this.$route;
       const { openid, ...others } = query;
       let uri = `${path}`;
@@ -32,7 +32,7 @@ export default {
         const arr = keys.map(key => `${key}=${query[key]}`);
         uri = `${uri}?${arr.join('&')}`;
       }
-      const url = `${this.host}${uri}`;
+      const url = `${this.host}${process.env.VUE_APP_ROUTER}${uri}`;
       const res = await this.jsAuth({ url });
       if (this.$checkRes(res)) {
         const { data } = res;