From 98e3f13185caeb4b4eb865b67860285a0534c211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Fri, 9 Dec 2022 14:17:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A4=BA=E4=BE=8B=E7=BB=84=E4=BB=B6name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/route.js | 4 ++-- src/views/demo/table/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/demo/route.js b/src/views/demo/route.js index a7c6041..514d44b 100644 --- a/src/views/demo/route.js +++ b/src/views/demo/route.js @@ -14,8 +14,8 @@ export default { }, children: [ { - name: 'CrudTable', - path: 'crud-table', + name: 'Crud', + path: 'crud', component: () => import('./table/index.vue'), meta: { title: 'CRUD表格', diff --git a/src/views/demo/table/index.vue b/src/views/demo/table/index.vue index 9117482..964f522 100644 --- a/src/views/demo/table/index.vue +++ b/src/views/demo/table/index.vue @@ -86,7 +86,7 @@ import { formatDateTime, renderIcon, isNullOrUndef } from '@/utils' import { useCRUD } from '@/composables' import api from './api' -defineOptions({ name: 'CrudTable' }) +defineOptions({ name: 'Crud' }) const $table = ref(null) /** QueryBar筛选参数(可选) */ @@ -94,7 +94,7 @@ const queryItems = ref({}) /** 补充参数(可选) */ const extraParams = ref({}) -onMounted(() => { +onActivated(() => { $table.value?.handleSearch() })