修改重置场景逻辑以及修复小bug
bug:当选中某个导航菜单时,再次点击会一直加载
This commit is contained in:
@@ -14,5 +14,12 @@ export const useLeftLegendStore = defineStore('leftLegend', () => {
|
||||
}
|
||||
>
|
||||
> = ref({});
|
||||
return { legendListInfo };
|
||||
|
||||
/**
|
||||
* 重置左侧图例信息
|
||||
*/
|
||||
const resetLegendListInfo = () => {
|
||||
legendListInfo.value = {};
|
||||
};
|
||||
return { legendListInfo, resetLegendListInfo };
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user