fix(项目管理): 修复环境点击sql不显示数据源的缺陷

--bug=1038248 --user=王孝刚
【项目管理】环境管理-前/后置SQL-引入数据源暂无数据-再打开一个新的环境有可引入数据源的-也显示暂无数据
https://www.tapd.cn/55049933/s/1504556
This commit is contained in:
wxg0103 2024-04-22 15:09:30 +08:00 committed by 刘瑞斌
parent 447798af0d
commit 51e5f5fe03
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,8 @@ const useProjectEnvStore = defineStore(
currentEnvDetailInfo.value = { ...tmpObj }; currentEnvDetailInfo.value = { ...tmpObj };
nextTick(() => { nextTick(() => {
backupEnvDetailInfo.value = cloneDeep(currentEnvDetailInfo.value); backupEnvDetailInfo.value = cloneDeep(currentEnvDetailInfo.value);
appStore.currentEnvConfig = cloneDeep(currentEnvDetailInfo.value.config);
appStore.currentEnvConfig.id = currentEnvDetailInfo.value.id;
}); });
} }
} catch (e) { } catch (e) {