fix fetch StructrueTree

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-28 14:50:11 +07:00
parent 74fa0f664c
commit e8c830454a
3 changed files with 59 additions and 17 deletions

View file

@ -28,6 +28,9 @@ export const useStructureTree = defineStore("structureTree", () => {
* @returns
*/
async function fetchStructureTree(sysKey: string, isLoad: boolean = false) {
console.log(sysKey);
console.log(dataStore.value);
if (dataStore.value[sysKey]) {
return dataStore.value[sysKey] || [];
} else {