fix: bug#11826
This commit is contained in:
parent
2b996fadf3
commit
fb32cc9a38
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue