Browse Source

访客列表列表字段配置缓存

刘琳琳 2 days ago
parent
commit
0456c6afc5

+ 2 - 1
src/store/modules/user.js

@@ -53,7 +53,8 @@ const state = getDefaultState()
 
 const mutations = {
   RESET_STATE: (state) => {
-    Object.assign(state, getDefaultState())
+    const visitorColumnFields = state.visitorColumnFields
+    Object.assign(state, getDefaultState(), { visitorColumnFields })
   },
   SET_TOKEN: (state, token) => {
     state.token = token

+ 1 - 1
src/views/pass_records/components/ysgz_pass_records.vue

@@ -403,7 +403,7 @@ export default {
           field: 'verifyScore',
           width: 80,
           isShow: true,
-          needSearch: true,
+          needSearch: false,
           searchField: 'verifyScore',
           searchType: 'Input'
         }, {