Explorar o código

使用decodeURIComponent

lifanagju_citu hai 6 meses
pai
achega
b8bea7be75

+ 1 - 1
src/config/axios/service.js

@@ -103,7 +103,7 @@ service.interceptors.request.use(
 
     // 开启参数加密
     if (config.openEncryption) {
-      console.log(config)
+      // console.log(config)
       const raw = config.url.split('?')[1]
       const body = {
         ...config.data,

+ 1 - 1
src/utils/openEncryption.js

@@ -29,7 +29,7 @@ export const encryptionFun = ({raw, body, appId, AppSecret}) => {
   const paramsStr = _initSign.slice(1, _initSign.length) + AppSecret
   let str = ''
   if (raw) {
-    str += raw
+    str += decodeURIComponent(raw)
   }
   if (body && Object.keys(body).length) {
     str += decodeURIComponent(JSON.stringify(body))

+ 2 - 0
src/views/recruit/enterprise/talentMap/index.vue

@@ -1,4 +1,5 @@
 <template>
+<div>
   <v-card class="card-box pa-5" style="height: 100%;">
     <div class="d-flex flex-column align-center" :class="{'v-center': init}">
       <TextUI
@@ -88,6 +89,7 @@
       <CtForm :items="formItems" style="width: 100%;"></CtForm>
     </div>
   </CtDialog>
+</div>
 </template>
 
 <script setup>