From 5b997bc1a76d724b13bd45893c91a2d53f12cf5e Mon Sep 17 00:00:00 2001 From: seaislee1209 Date: Sat, 28 Mar 2026 23:44:34 +0800 Subject: [PATCH] fix: restore volcProjects for create dialog (was removed during cleanup) Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/views/iam/IAMUserList.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/iam/IAMUserList.vue b/frontend/src/views/iam/IAMUserList.vue index 76375c1..e5f1eda 100644 --- a/frontend/src/views/iam/IAMUserList.vue +++ b/frontend/src/views/iam/IAMUserList.vue @@ -423,7 +423,21 @@ async function handleEditProfile() { // (Policies dialog removed - now in UserPoliciesView) -// (Projects dialog removed - now in UserPoliciesView) +// Volcengine projects (for create dialog) +const volcProjects = ref([]) +const volcProjectsLoading = ref(false) + +async function loadVolcProjects() { + volcProjectsLoading.value = true + try { + const { data } = await api.get('/api/v1/projects/') + volcProjects.value = data + } catch (e) { + ElMessage.error('获取火山项目列表失败') + } finally { + volcProjectsLoading.value = false + } +} // --- Allocate --- const maxDeduct = computed(() => {