|
|
@@ -14,7 +14,7 @@ import { |
|
|
|
appId, |
|
|
|
getToken, |
|
|
|
wechatAppID, |
|
|
|
getOpenId |
|
|
|
getOpenId,logout |
|
|
|
} from "@/utils/network/api"; |
|
|
|
import { |
|
|
|
stringToJson |
|
|
@@ -147,13 +147,25 @@ export const useUserStore = defineStore("userStore", { |
|
|
|
url: "/login/login" |
|
|
|
}); |
|
|
|
}, |
|
|
|
/*退出登录请求*/ |
|
|
|
logoutRequest() { |
|
|
|
const options = { |
|
|
|
type: 2, |
|
|
|
data: {}, |
|
|
|
method: "POST", |
|
|
|
showLoading: true, |
|
|
|
}; |
|
|
|
requestNew(logout, options).then((res) => { |
|
|
|
this.loginOutNoConfirm() |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
/*退出登录*/ |
|
|
|
loginOut() { |
|
|
|
confirm( |
|
|
|
"确定要退出登录吗?", |
|
|
|
() => { |
|
|
|
this.loginOutNoConfirm(); |
|
|
|
this.logoutRequest(); |
|
|
|
}, |
|
|
|
"提示", |
|
|
|
true |