feat(short-drama-agent-front): 优化项目查询与工作区界面
This commit is contained in:
1 parent
227db5450d
commit
e6d02a20a7
33 files changed
+439
-513
No files matched your search
@@ -13,7 +13,7 @@ import {
|
||||
} from 'naive-ui'
|
||||
import { RefreshCw, Search } from '@lucide/vue'
|
||||
import WorkspacePage from '../../components/ui/WorkspacePage.vue'
|
||||
import { usePolling } from '../../composables/usePolling'
|
||||
import { useQuery } from '../../composables/useQuery'
|
||||
import { StatusBadge } from '../../components/ui'
|
||||
import { formatDate } from '../../lib/format'
|
||||
import { projectsApi } from './api'
|
||||
@@ -23,7 +23,7 @@ import CreateProjectDialog from './components/CreateProjectDialog.vue'
|
||||
/** 项目表格使用固定表头与独立滚动;搜索筛选仍作用于真实接口数据。 */
|
||||
const router = useRouter()
|
||||
/** 列表已有刷新按钮,只在进入和手动刷新时读取;筛选在完整结果中进行。 */
|
||||
const query = usePolling(ref('projects'), (_, signal) => projectsApi.list(signal), false)
|
||||
const query = useQuery(ref('projects'), (_, signal) => projectsApi.list(signal))
|
||||
const search = ref('')
|
||||
const filter = ref('all')
|
||||
/** 接口暂未分页:对完整查询结果分批展示,滚动时追加而非切换页码。 */
|
||||
|
||||
Reference in new issue
Block a user