zhuf 1 年之前
父節點
當前提交
f95959d3a4
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/config/app.js

+ 2 - 1
src/config/app.js

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