feat: 新增需求
This commit is contained in:
@@ -9,19 +9,28 @@ import store from '../index'
|
||||
import permission from '@/libs/permission'
|
||||
|
||||
export const useUserStore = defineStore({
|
||||
id: ' user',
|
||||
id: 'user',
|
||||
state: () => ({
|
||||
token: "",
|
||||
userInfo: {},
|
||||
menuList: [],
|
||||
tenantId: ''
|
||||
tenantId: '',
|
||||
current: 0
|
||||
}),
|
||||
getters: {
|
||||
getToken() {
|
||||
return this.token
|
||||
},
|
||||
getCurrent() {
|
||||
return this.current
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
setCurrent(current) {
|
||||
this.current = current
|
||||
console.log(current,'current--')
|
||||
uni.setStorageSync('current', current)
|
||||
},
|
||||
setTenantId(tenantId) {
|
||||
console.log(tenantId,'tenantId---')
|
||||
this.tenantId = tenantId
|
||||
|
||||
Reference in New Issue
Block a user