From db9b53821b17d5e342235d4da8bbf33cf2fdb1c3 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Mon, 25 Aug 2025 09:53:46 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/raw-material/components/table/index.vue | 4 ++-- src/views/material-center/index.vue | 10 +++++++--- src/views/writer-material-center/index.vue | 7 ++++--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/views/material-center/components/raw-material/components/table/index.vue b/src/views/material-center/components/raw-material/components/table/index.vue index 28ac6ce..5fb0e2c 100644 --- a/src/views/material-center/components/raw-material/components/table/index.vue +++ b/src/views/material-center/components/raw-material/components/table/index.vue @@ -110,8 +110,8 @@ const props = defineProps({ default: () => [], }, rowSelection: { - type: Array, - default: () => [], + type: Object, + default: () => {}, }, selectedRowKeys: { type: Array, diff --git a/src/views/material-center/index.vue b/src/views/material-center/index.vue index b27488a..e6a303e 100644 --- a/src/views/material-center/index.vue +++ b/src/views/material-center/index.vue @@ -19,7 +19,7 @@ export default defineComponent({ const route = useRoute(); const router = useRouter(); - const activeKey = ref('1'); + const activeKey = ref(''); onMounted(() => { activeKey.value = TABS.find((item) => item.routeName === route.name)?.key; @@ -34,7 +34,7 @@ export default defineComponent({ item.key === activeKey.value ? '!color-#6D4CFE font-500' : '' }`} onClick={() => { - activeKey.value = item.key; + activeKey.value = ''; router.push({ name: item.routeName }); }} > @@ -42,7 +42,11 @@ export default defineComponent({
))} - {activeKey.value === '1' ?