chore:点击中英文按钮不跳到‘我的’了

This commit is contained in:
2026-02-07 16:10:55 +08:00
parent a981c02baf
commit 19a53ef414

View File

@@ -216,8 +216,15 @@ export default {
this.currentLangIndex = this.currentLangIndex === 0 ? 1 : 0;
const targetLang = this.langIndexMap[this.currentLangIndex];
// 调用语言切换逻辑(设置 storage + 清空缓存)
this.$langConfig.change(targetLang);
uni.setStorageSync("lang", targetLang);
const pages = getCurrentPages();
const currentPage = pages[pages.length - 1];
const currentRoute = currentPage.route;
uni.reLaunch({
url: '/' + currentRoute
});
},
handleUnifiedKefuClick() {