diff --git a/frontend/src/store/modules/setting/useProjectEnvStore.ts b/frontend/src/store/modules/setting/useProjectEnvStore.ts index 8b020fb74b..03ae76f4a2 100644 --- a/frontend/src/store/modules/setting/useProjectEnvStore.ts +++ b/frontend/src/store/modules/setting/useProjectEnvStore.ts @@ -131,6 +131,8 @@ const useProjectEnvStore = defineStore( currentEnvDetailInfo.value = { ...tmpObj }; nextTick(() => { backupEnvDetailInfo.value = cloneDeep(currentEnvDetailInfo.value); + appStore.currentEnvConfig = cloneDeep(currentEnvDetailInfo.value.config); + appStore.currentEnvConfig.id = currentEnvDetailInfo.value.id; }); } } catch (e) {