Skip to content

Commit 50d19cb

Browse files
committed
fix(列表页面): 强制更新列表元素
1 parent 403c035 commit 50d19cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/views/template/index.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Author: 秦少卫
33
* @Date: 2024-05-17 15:30:21
44
* @LastEditors: 秦少卫
5-
* @LastEditTime: 2024-06-12 22:52:04
5+
* @LastEditTime: 2024-07-19 16:37:42
66
* @Description: file content
77
-->
88
<template>
@@ -145,7 +145,8 @@ const getTmplListHandel = async () => {
145145
Spin.show();
146146
try {
147147
const res = await getTmplList(qs.stringify(params));
148-
148+
templList.value = [];
149+
await nextTick();
149150
total.value = res.data.meta.pagination.total;
150151
templList.value = res.data.data.map((item) => ({
151152
id: item.id,

0 commit comments

Comments
 (0)