重构代码.

This commit is contained in:
lijiahangmax
2023-09-25 00:07:51 +08:00
parent 024a8b4596
commit f8cc8c4233
16 changed files with 18 additions and 17 deletions

View File

@@ -151,7 +151,7 @@
};
};
const formRef = ref<any>();
const formRef = ref();
const formModel = reactive<MenuUpdateRequest & Record<string, any>>(defaultForm());
const emits = defineEmits(['added', 'updated']);

View File

@@ -181,13 +181,13 @@
const cacheStore = useCacheStore();
const formRef = ref<any>();
const formRef = ref();
const formModel = reactive<MenuQueryRequest>({
name: undefined,
status: undefined
});
const tableRef = ref<any>();
const tableRef = ref();
const expandStatus = ref<boolean>(false);
const tableRenderData = ref<MenuQueryResponse[]>([]);

View File

@@ -24,8 +24,8 @@
import { onUnmounted, ref } from 'vue';
import { useCacheStore } from '@/store';
const table = ref<any>();
const modal = ref<any>();
const table = ref();
const modal = ref();
// 卸载时清除 menu cache
onUnmounted(() => {