优化代码

This commit is contained in:
chuzhongzai
2024-03-04 23:12:05 +08:00
parent b02e96a021
commit 5e4b700e0c
5 changed files with 22 additions and 20 deletions
+5 -3
View File
@@ -1,6 +1,5 @@
<template>
<div class="side" style="width: 100%">
<span v-show="loadComplete">本子历史</span>
<div v-show="loadComplete" class="load_complete">
<el-table :data="currentTasks"
:empty-text="emptyText"
@@ -49,7 +48,7 @@
</el-table-column>
</el-table>
<el-row class="pageChanger">
<el-col>
<el-col v-if="username !== 'test'">
<el-select v-model="category" @change="changeCategory">
<template #prefix>
分类
@@ -109,6 +108,9 @@ let category = ref("myDownload") //myDownload myCollect total
let galleryNameType = ref("shortName") // shortName name
let sortType = ref("shortName") // shortName name createTime
let targetPage = ref(1) // 当前页数
let username = computed(() => {
return store.state.username
})
//防抖计时器
let debounceTimer = 0
@@ -139,7 +141,7 @@ let isLion = computed(() => {
let emptyText = computed(() => {
let action = category.value === 'myDownload' ? '下载': '收藏'
return '您未' + action + "本子"
return '您未' + action + "过"
})
//翻页