feat: 新增需求

This commit is contained in:
caijun
2026-01-20 18:07:35 +08:00
parent 9f5b2a92c4
commit 4243e1213f
26 changed files with 2837 additions and 936 deletions

View File

@@ -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