fix: restore volcProjects for create dialog (was removed during cleanup)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
seaislee1209 2026-03-28 23:44:34 +08:00
parent 6f4d7e6b5b
commit 5b997bc1a7

View File

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