lrf402788946 před 4 roky
rodič
revize
1b7bd01123
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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;