Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
14e565a0
Commit
14e565a0
authored
Mar 30, 2026
by
erio
Browse files
fix(channel): 分组加载时序修复 — 预加载 + await 确保分组数据就绪
parent
ce694701
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/admin/ChannelsView.vue
View file @
14e565a0
...
...
@@ -839,14 +839,14 @@ function resetForm() {
showPlatformMenu
.
value
=
false
}
function
openCreateDialog
()
{
async
function
openCreateDialog
()
{
editingChannel
.
value
=
null
resetForm
()
loadGroups
()
await
loadGroups
()
showDialog
.
value
=
true
}
function
openEditDialog
(
channel
:
Channel
)
{
async
function
openEditDialog
(
channel
:
Channel
)
{
editingChannel
.
value
=
channel
form
.
name
=
channel
.
name
form
.
description
=
channel
.
description
||
''
...
...
@@ -854,9 +854,8 @@ function openEditDialog(channel: Channel) {
form
.
restrict_models
=
channel
.
restrict_models
||
false
form
.
billing_model_source
=
channel
.
billing_model_source
||
'
requested
'
// Must load groups first so apiToForm can map groupID → platform
loadGroups
().
then
(()
=>
{
form
.
platforms
=
apiToForm
(
channel
)
})
await
loadGroups
()
form
.
platforms
=
apiToForm
(
channel
)
showDialog
.
value
=
true
}
...
...
@@ -948,6 +947,7 @@ async function confirmDelete() {
// ── Lifecycle ──
onMounted
(()
=>
{
loadChannels
()
loadGroups
()
})
onUnmounted
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment