fix: bug#11213

This commit is contained in:
xieyonghong 2023-04-01 17:28:32 +08:00
parent 9c909edafd
commit 739490bcbe
3 changed files with 4 additions and 3 deletions

View File

@ -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 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 * @param type

View File

@ -28,6 +28,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { loginout_api } from '@/api/login'; import { loginout_api } from '@/api/login';
import { useUserInfo } from '@/store/userInfo'; import { useUserInfo } from '@/store/userInfo';
import { LoginPath } from '@/router/menu'
const {push} = useRouter(); const {push} = useRouter();
@ -37,7 +38,7 @@ const userInfo = useUserInfo().$state.userInfos as any;
const logOut = () => { const logOut = () => {
loginout_api().then(() => { loginout_api().then(() => {
localStorage.clear(); localStorage.clear();
push('/user/login'); push(LoginPath);
}); });
}; };
</script> </script>

View File

@ -1,4 +1,4 @@
export const LoginPath = '/login' export const LoginPath = '/user/login'
export const InitHomePath = '/init-home' export const InitHomePath = '/init-home'
export const AccountCenterBindPath = '/account/center/bind' export const AccountCenterBindPath = '/account/center/bind'
export const InitLicense = '/init-license' export const InitLicense = '/init-license'