nieyuge 5 ngày trước cách đây
mục cha
commit
7ee75aa406
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/http/sso.ts

+ 5 - 0
src/http/sso.ts

@@ -35,6 +35,9 @@ export function clearUserInfo() {
   localStorage.removeItem('userInfo')
 }
 
+export function clearPqUserInfo() {
+  localStorage.removeItem('pq_userInfo')
+}
 
 
 export function login(account: string, password: string) {
@@ -97,6 +100,7 @@ export function loginBySendCode(telNum: string, verifyCode: string) {
 export function logout() {
 	message.success('已退出登录')
 	clearUserInfo()
+	clearPqUserInfo()
 	router.navigate('/login')
 	return true
 }
@@ -105,6 +109,7 @@ export default {
   getUserInfo,
   setUserInfo,
   clearUserInfo,
+  clearPqUserInfo,
   login,
   sendCode,
   loginBySendCode,