Skip to content

Commit

Permalink
cosm: loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Jun 12, 2024
1 parent d9b4826 commit 0c04822
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sdk/components/loading/loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ Component({
}

if (tipType == 'page') {
const listWithoutPage = await fresnsLang('listWithoutPage');
const listWithoutPage = await fresnsLang('listWithoutPage', '没有了');
this.setData({
tipStatus: true,
tipText: listWithoutPage || '没有了',
tipText: listWithoutPage,
});
}

if (tipType == 'empty') {
const listEmpty = await fresnsLang('listEmpty');
const listEmpty = await fresnsLang('listEmpty', '列表为空,暂无内容');
this.setData({
tipStatus: true,
tipText: listEmpty || '列表为空,暂无内容',
tipText: listEmpty,
});
}
},
Expand All @@ -55,10 +55,10 @@ Component({
/** 组件生命周期声明对象 **/
lifetimes: {
attached: async function () {
const loading = await fresnsLang('loading');
const loading = await fresnsLang('loading', '正在加载');

this.setData({
loading: loading || '正在加载',
loading: loading,
});
},
},
Expand Down

0 comments on commit 0c04822

Please sign in to comment.