大空间消毒机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
538 B

import { defineStore } from 'pinia'
export const useUserStore = defineStore({
id: 'user', // id必填,且需要唯一
// state
state: () => {
return {
allUserList: [],
operUser: '',
}
},
// actions
actions: {
updateOperUser(operUser) {
this.operUser = operUser
},
updateUserList(userList) {
this.allUserList = userList
},
},
getters: {
userList: state => {
const arr = state.allUserList.filter(item => item.permission_level == 3)
return arr
},
},
})