UPDATE: VERSION-20260327

This commit is contained in:
libertyspy
2026-03-27 10:54:44 +08:00
parent cb1019b7d7
commit d1f720f691

View File

@@ -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);
}
});
}
}
});
};