Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Reverse the environemnt list in the environemnt select

天舟6944821469c9
diff --git a/frontend/src/components/EnvironmentSelect.vue b/frontend/src/components/EnvironmentSelect.vue
index 0a5842e1fe..d4ed5f3ecd 100644
--- a/frontend/src/components/EnvironmentSelect.vue
+++ b/frontend/src/components/EnvironmentSelect.vue
@@ -25,6 +25,7 @@
<script lang="ts">
import { computed, reactive } from "vue";
import { useStore } from "vuex";
+import cloneDeep from "lodash-es/cloneDeep";
interface LocalState {
selectedId?: string;
@@ -54,7 +55,9 @@ export default {
});
const environmentList = computed(() => {
- return store.getters["environment/environmentList"]();
+ return cloneDeep(
+ store.getters["environment/environmentList"]()
+ ).reverse();
});
if (