UPDATE: VERSION-20260327
This commit is contained in:
@@ -365,12 +365,16 @@ export default defineComponent({
|
||||
window.addEventListener('resize', handleResize);
|
||||
console.log('节点挂载完成');
|
||||
|
||||
if(currentRoute.query.platform){
|
||||
findOneTreeByPlatformId(currentRoute.query.platform as number).then(r=> {
|
||||
if(r.data){
|
||||
handleSelectTree(r.data);
|
||||
}
|
||||
})
|
||||
const platformId = currentRoute.query.platform;
|
||||
if (platformId) {
|
||||
const id = Number(platformId);
|
||||
if (!isNaN(id)) {
|
||||
findOneTreeByPlatformId(id).then(r => {
|
||||
if (r.data) {
|
||||
handleSelectTree(r.data);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user