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

import { getToken, setToken, removeToken } from "@/utils/auth";
import defAva from "@/assets/images/profile2.png";

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;