feat(fitting): 我的衣橱为空时默认打开精选衣橱——首次用户直接看到 30 件可试衣服
This commit is contained in:
@@ -118,6 +118,10 @@ struct FittingRoomPage {
|
||||
private async hydrateWardrobe(): Promise<void> {
|
||||
await WardrobeStore.init()
|
||||
this.items = WardrobeStore.list()
|
||||
// 我的衣橱为空时默认打开精选衣橱:首次用户直接看到 30 件可试的衣服,不觉得『没衣服』
|
||||
if (this.items.length === 0) {
|
||||
this.clothTab = 1
|
||||
}
|
||||
}
|
||||
|
||||
/** 精选衣橱加载(rawfile manifest,离线打包;失败为空数组不阻断)。 */
|
||||
|
||||
Reference in New Issue
Block a user