重构代码.
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
const formRef = ref<any>();
|
||||
const formRef = ref();
|
||||
const formModel = reactive<MenuUpdateRequest & Record<string, any>>(defaultForm());
|
||||
|
||||
const emits = defineEmits(['added', 'updated']);
|
||||
|
||||
@@ -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[]>([]);
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user