lrf402788946 4 年之前
父節點
當前提交
0962f0c805
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;