Browse Source

登录清缓存

xiaohaizhao 1 year ago
parent
commit
f0f2e2fc09
3 changed files with 5 additions and 2 deletions
  1. 2 0
      pages/login/modules/login.js
  2. 1 1
      project.config.json
  3. 2 1
      project.private.config.json

+ 2 - 0
pages/login/modules/login.js

@@ -102,6 +102,8 @@ function toHome() {
     })
     getApp().initSocket();
     wx.setStorageSync('isLeader', wx.getStorageSync('userMsg').usertype == 21)
+    wx.removeStorageSync('domainrelatedaccounts')
+    count = 0;
 }
 /* 站点数据查询 */
 module.exports = {

+ 1 - 1
project.config.json

@@ -14,7 +14,7 @@
     "minified": true,
     "autoAudits": false,
     "newFeature": false,
-    "uglifyFileName": false,
+    "uglifyFileName": true,
     "uploadWithSourceMap": true,
     "useIsolateContext": true,
     "nodeModules": false,

+ 2 - 1
project.private.config.json

@@ -3,7 +3,8 @@
   "projectname": "%E6%9D%A5%E6%96%AF%E5%A5%A5E%E8%AE%A2%E5%8D%95",
   "setting": {
     "compileHotReLoad": true,
-    "urlCheck": false
+    "urlCheck": false,
+    "autoAudits": true
   },
   "libVersion": "2.24.7",
   "condition": {