lrf402788946 4 năm trước cách đây
mục cha
commit
0962f0c805
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/layout/common/share.vue

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

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