lrf402788946 4 éve
szülő
commit
1b7bd01123
1 módosított fájl, 2 hozzáadás és 1 törlés
  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]}`);
         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 });
       if (this.$checkRes(res)) {
         const { data } = res;