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(() => {