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;