MOC移动端页面

This commit is contained in:
2026-11-13 15:23:10 +08:00
commit f42123f97e
47 changed files with 7466 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import { reactive, readonly } from 'vue'
interface UserState {
token: string
userInfo: any | null
}
const state = reactive<UserState>({
token: '',
userInfo: null,
})
export function setAuth(data: any) {
state.token = data.token
state.userInfo = data.user
}
export function clearAuth() {
state.token = ''
state.userInfo = null
}
export const useUserStore = () => readonly(state)