refactor(member): 优化多语言调用和可选链使用

1.  移除语言包默认参数,统一使用翻译文本作为默认值
2.  为嵌套属性访问添加可选链操作符,避免空指针报错
3.  新增会员相关的多语言词条
This commit is contained in:
2026-06-18 17:35:52 +08:00
parent b799e67e54
commit f3d9f397d7
3 changed files with 16 additions and 8 deletions

View File

@@ -12,8 +12,8 @@ export default {
// 退出登录
logout() {
uni.showModal({
title: this.$lang('logoutTitle', '提示'),
content: this.$lang('logoutContent', '确定要退出登录吗'),
title: this.$lang('logoutTitle'),
content: this.$lang('logoutContent'),
success: (res) => {
if (res.confirm) {
this.clearLoginState();