mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
chore: 发布版本2.0.10,修复并优化多项功能
1. 更新manifest.json和package.json版本号至2.0.10 2. 修复友情链接api #40 3. 修复图库api #39 4. 统一home.vue页面的代码缩进格式 5. 清理api文件冗余注释,修复接口域名路径 6. 优化图库页面空状态提示文案
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<tm-skeleton model="card"></tm-skeleton>
|
||||
</view>
|
||||
<view v-else-if="loading == 'error'" class="flex flex-col flex-center" style="width:100%;height:60vh;">
|
||||
<tm-empty icon="icon-wind-cry" label="阿偶,似乎获取数据失败了~">
|
||||
<tm-empty icon="icon-wind-cry" label="阿偶,获取数据失败了~">
|
||||
<tm-button theme="light-blue" size="m" :shadow="0" @click="fnGetData(true)">刷新试试</tm-button>
|
||||
</tm-empty>
|
||||
</view>
|
||||
@@ -206,14 +206,18 @@
|
||||
page: 1,
|
||||
size: 0
|
||||
}).then(res => {
|
||||
this.category.list = res.items.map(item => {
|
||||
this.category.list = res.map(item => {
|
||||
return {
|
||||
name: item.metadata.name,
|
||||
displayName: item.spec.displayName,
|
||||
priority: item.spec.priority
|
||||
}
|
||||
}).sort((a, b) => a.priority - b.priority);
|
||||
|
||||
}).sort((a, b) => a.priority - b.priority)
|
||||
this.category.list.unshift({
|
||||
name: undefined,
|
||||
displayName: '全部',
|
||||
priority: 0
|
||||
});
|
||||
if (this.category.list.length !== 0) {
|
||||
this.queryParams.group = this.category.list[0].name;
|
||||
this.fnGetData(true);
|
||||
|
||||
Reference in New Issue
Block a user