fix: bug#11213
This commit is contained in:
parent
9c909edafd
commit
739490bcbe
|
@ -9,7 +9,7 @@ export const updateMeInfo_api = (data:object) => server.put(`/user/detail`,data)
|
|||
// 修改登录用户密码
|
||||
export const updateMepsd_api = (data:object) => server.put(`/user/passwd`,data);
|
||||
// 第三方账号解绑
|
||||
export const unBind_api = (appId: string) => server.post(`/application/sso/${appId}/unbind/me`, []);
|
||||
export const unBind_api = (appId: string) => server.request.post(`/application/sso/${appId}/unbind/me`);
|
||||
/**
|
||||
* 校验字段合法性
|
||||
* @param type 类型
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
<script setup lang="ts">
|
||||
import { loginout_api } from '@/api/login';
|
||||
import { useUserInfo } from '@/store/userInfo';
|
||||
import { LoginPath } from '@/router/menu'
|
||||
|
||||
const {push} = useRouter();
|
||||
|
||||
|
@ -37,7 +38,7 @@ const userInfo = useUserInfo().$state.userInfos as any;
|
|||
const logOut = () => {
|
||||
loginout_api().then(() => {
|
||||
localStorage.clear();
|
||||
push('/user/login');
|
||||
push(LoginPath);
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const LoginPath = '/login'
|
||||
export const LoginPath = '/user/login'
|
||||
export const InitHomePath = '/init-home'
|
||||
export const AccountCenterBindPath = '/account/center/bind'
|
||||
export const InitLicense = '/init-license'
|
||||
|
|
Loading…
Reference in New Issue