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' ? : } + {activeKey.value === '1' ? ( + + ) : activeKey.value === '2' ? ( + + ) : null} ); }, diff --git a/src/views/writer-material-center/index.vue b/src/views/writer-material-center/index.vue index e304954..2ec06b1 100644 --- a/src/views/writer-material-center/index.vue +++ b/src/views/writer-material-center/index.vue @@ -19,11 +19,12 @@ 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; }); + return () => (
@@ -34,7 +35,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 +43,7 @@ export default defineComponent({

))}
- {activeKey.value === '1' ? : } + {activeKey.value === '1' ? : activeKey.value === '2' ? : null}{' '}
); },