Skip to content

Commit d95b01e

Browse files
committed
任务数据为空显示
1 parent e2a3367 commit d95b01e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cool/modules/task/views/task.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ export default defineComponent({
315315
316316
// 更多列表
317317
function moreList(res: any, { list, pagination }: any) {
318+
if (!res) {
319+
return;
320+
}
318321
const { page, size } = res.pagination;
319322
const len = res.list.length;
320323
const max = list.length;
@@ -490,7 +493,7 @@ export default defineComponent({
490493
component: {
491494
name: "el-input",
492495
props: {
493-
placeholder: "sys.test.add(params)"
496+
placeholder: "taskDemoService.test([1,2])"
494497
}
495498
}
496499
},

0 commit comments

Comments
 (0)