更新服务条款页面内容
This commit is contained in:
@@ -382,10 +382,15 @@ export default {
|
||||
document.addEventListener("click", function () {
|
||||
const dropdown = document.querySelector(".dropdown");
|
||||
const arrow = document.querySelector(".arrow");
|
||||
if (dropdown.classList.contains("show")) {
|
||||
try {
|
||||
if (dropdown.classList.contains("show")) {
|
||||
dropdown.classList.remove("show");
|
||||
arrow.classList.remove("up");
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -445,6 +450,8 @@ export default {
|
||||
async fetchSignOut() {
|
||||
const data = await getLogout();
|
||||
if (data && data.code == 200) {
|
||||
// 调用 Vuex 的 logout action 清除前端状态
|
||||
await this.$store.dispatch('logout')
|
||||
const lang = this.$i18n.locale;
|
||||
this.$router.push(`/${lang}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user