浏览代码

前端异常监控,先不要发版

ZaiZai 2 年之前
父节点
当前提交
5e6a2edae2
共有 4 个文件被更改,包括 8 次插入1 次删除
  1. 1 0
      index.html
  2. 0 0
      public/plugins/webfunny.js
  3. 1 1
      public/version.json
  4. 6 0
      src/store/modules/user.js

+ 1 - 0
index.html

@@ -1,6 +1,7 @@
 <!DOCTYPE html>
 <html lang="zh">
     <head>
+        <script type="text/javascript" src="/plugins/webfunny.js"></script>
         <meta charset="UTF-8"/>
         <link rel="icon" href="/favicon.ico"/>
         <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

文件差异内容过多而无法显示
+ 0 - 0
public/plugins/webfunny.js


+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20231026110423"
+  "value": "20231106174456"
 }

+ 6 - 0
src/store/modules/user.js

@@ -21,6 +21,12 @@ export const useAppLogin = async (form) => {
         store.setRefreshTokenVal(res['refresh_token'])
         store.setTenantId(res['tenant_id'])
         store.setUserInfo(res)
+        window.localStorage.wmUserInfo = JSON.stringify({
+            userId: res['user_id'],
+            userTag: res['real_name'],
+            projectVersion: '3.5.0',
+            env: 'pro',
+        })
         const routerRes = await setRouterData()
         if (!routerRes) {
             return Promise.reject({ msg: '路由异常' })

部分文件因为文件数量过多而无法显示