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

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

@@ -32,7 +32,8 @@ export default {
         const arr = keys.map(key => `${key}=${query[key]}`);
         const arr = keys.map(key => `${key}=${query[key]}`);
         uri = `${uri}?${arr.join('&')}`;
         uri = `${uri}?${arr.join('&')}`;
       }
       }
-      const url = encodeURIComponent(`${this.host}${process.env.VUE_APP_ROUTER}${uri}`);
+      // const url = encodeURIComponent(`${this.host}${process.env.VUE_APP_ROUTER}${uri}`);
+      const url = encodeURIComponent(location.href.split('#')[0]);
       const res = await this.jsAuth({ url });
       const res = await this.jsAuth({ url });
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         const { data } = res;
         const { data } = res;