fix: bug#11826

This commit is contained in:
xieyonghong 2023-04-11 11:27:11 +08:00
parent 2b996fadf3
commit fb32cc9a38
1 changed files with 15 additions and 14 deletions

View File

@ -256,20 +256,21 @@ const getDetail = () => {
} }
}; };
// watch( const initPage = async (newId: any) => {
// () => route.params?.id, await instanceStore.refresh(String(newId));
// async (newId) => { getStatus(String(newId));
// if (newId) { list.value = [...initList];
// await instanceStore.refresh(String(newId)); console.log('watch', route.params?.id)
// getStatus(String(newId)); getDetail();
// list.value = [...initList]; instanceStore.tabActiveKey = 'Info';
// console.log('watch', route.params?.id) }
// getDetail();
// instanceStore.tabActiveKey = 'Info'; onBeforeRouteUpdate((to: any) => {
// } if (to.params?.id) {
// }, initPage(to.params?.id)
// { immediate: true, deep: true }, }
// ); })
const getDetailFn = async () => { const getDetailFn = async () => {
const _id = route.params?.id; const _id = route.params?.id;