Browse Source

匹配jlt传参

zhuf 1 year ago
parent
commit
3c526554c2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/config/app.js

+ 2 - 2
src/config/app.js

@@ -1,5 +1,5 @@
 // 将window.location.search 转为对象
 // 将window.location.search 转为对象
-const search = window.location.search
+const search = decodeURIComponent(window.location.search)
   .slice(1)
   .slice(1)
   .split('&')
   .split('&')
   .reduce((obj, item) => {
   .reduce((obj, item) => {
@@ -9,6 +9,6 @@ const search = window.location.search
   }, {})
   }, {})
 
 
 console.log('search : ', search)
 console.log('search : ', search)
-export const APP_TITLE = search?.appname ? decodeURIComponent(search?.appname) : '巡课系统'
+export const APP_TITLE = search?.appname ? (search?.appname) : '巡课系统'
 
 
 document.title = APP_TITLE
 document.title = APP_TITLE