Browse Source

准备测以前的功能

master
maochaoying 2 years ago
parent
commit
6dc22f50ae
  1. 3
      src/components/Operator.vue
  2. 14
      src/store/modules/preinstall.js
  3. 2
      src/store/modules/user.js

3
src/components/Operator.vue

@ -519,7 +519,8 @@ const changePreVal = val => {
const startDisinfect = () => { const startDisinfect = () => {
// //
// //
preVisible.value = true
// preVisible.value = true
this.realStart()
} }
const realStart = () => { const realStart = () => {

14
src/store/modules/preinstall.js

@ -3,8 +3,18 @@ export const usePreStore = defineStore({
id: 'preinstall', // id必填,且需要唯一 id: 'preinstall', // id必填,且需要唯一
// state // state
state: () => { state: () => {
return {}
return {
currentPreId: '',
currentPreConfig: {},
}
}, },
// actions // actions
actions: {},
actions: {
updateCurrentPreId(currentPreId) {
this.currentPreId = currentPreId
},
updateCurrentPreConfig(currentPreConfig) {
this.currentPreConfig = currentPreConfig
},
},
}) })

2
src/store/modules/user.js

@ -7,7 +7,7 @@ export const useUserStore = defineStore({
allUserList: [], allUserList: [],
operUser: '', operUser: '',
loginUser: '', loginUser: '',
loginUserPermission: 2,
loginUserPermission: 3,
} }
}, },
// actions // actions

Loading…
Cancel
Save