zhangxiao
2024-08-09 00d600d4c8445b6729007f50ed7038deb84a13f6
src/store/modules/user/index.ts
@@ -30,6 +30,7 @@
    certification: undefined,
    role: '',
    resources:undefined,
    hrefUrl:undefined
  }),
  getters: {
@@ -67,6 +68,7 @@
    async login(loginForm: LoginData):string {
      try {
        const res = await userLogin(loginForm);
        setToken(res.data.access_token);
        const userInfo = {
          avatar: res.data.avatar,
@@ -101,6 +103,11 @@
        this.logoutCallBack();
      }
    },
    getHreFurl(url: string) {
      this.hrefUrl=url
    },
  },
});