// import { login, logout, getInfo } from "@/api/login";

import { getToken, setToken, removeToken } from "@/utils/auth";

const useUserStore = defineStore("user", {
    state: () => ({
        token: getToken(),
        userName: "",
        passWord: undefined,
        nickName: "",
        avatar: "",
        userId: "",
        deptId: "",
        roles: [],
        email: "",
        sex: "",
        phonenumber: "",
        permissions: [],
        middlePageData: {
            page: {},
            router: [],
            defaultHomePage: undefined,
        },
    }),
    actions: {
        
    },
});

export default useUserStore;