import {defineStore} from 'pinia'


// 第一个参数是应用程序中 store 的唯一 id
export const useAppStore = defineStore('AppData', {
    // 其它配置项
    state: () => {
        return {
            user: {
                token: '',
                AID: '',
                name: '',
                classes: '',
                teamGroup: '',
                role: '',
                userName: '',
                password: '',
                opName: '',
            },
            isLoading: false,
            routerData: {
                userRouterList: [],
                nowRouterPath: '',
                nowRouterTitle: '',
                selected: false,
            },
        };
    },
})