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:
parent
6f4d7e6b5b
commit
5b997bc1a7
@ -423,7 +423,21 @@ async function handleEditProfile() {
|
|||||||
|
|
||||||
// (Policies dialog removed - now in UserPoliciesView)
|
// (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 ---
|
// --- Allocate ---
|
||||||
const maxDeduct = computed(() => {
|
const maxDeduct = computed(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user