refactor(components&cart): 调整语言包引用路径
统一修正空状态组件和购物车页面的语言包调用路径,将零散的语言项归类到goods.cart命名空间下,移除默认兜底文案
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user