refactor(components&cart): 调整语言包引用路径

统一修正空状态组件和购物车页面的语言包调用路径,将零散的语言项归类到goods.cart命名空间下,移除默认兜底文案
This commit is contained in:
2026-07-03 11:26:26 +08:00
parent 2a2161c9d9
commit d1e6cc3122
2 changed files with 9 additions and 9 deletions

View File

@@ -43,13 +43,13 @@ export default {
computed: {
// 显示文案:优先用 prop 传入的,没有则用语言包默认值
displayText() {
return this.text || this.$lang('common.mescrollEmpty') || '暂无相关数据';
return this.text || this.$lang('common.mescrollEmpty');
},
displaySubText() {
return this.subText || '';
},
displayBtnText() {
return (this.emptyBtn && this.emptyBtn.text) || this.$lang('toGoodsCategoryPage') || '去逛逛';
return (this.emptyBtn && this.emptyBtn.text) || this.$lang('toGoodsCategoryPage');
},
// 建立 componentRefresh 依赖,切语言时自动更新
_i18nRefresh() {