Browse Source

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

ZaiZai 1 year ago
parent
commit
5e6a2edae2
4 changed files with 8 additions and 1 deletions
  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"/>

File diff suppressed because it is too large
+ 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: '路由异常' })

Some files were not shown because too many files changed in this diff