From 726730bb0e599011830dacca0a24811427c7bea9 Mon Sep 17 00:00:00 2001 From: erio Date: Mon, 30 Mar 2026 21:47:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(channel):=20splice=E6=9B=BF=E6=8D=A2model?= =?UTF-8?q?=5Fpricing=E6=9D=A1=E7=9B=AE=20+=20=E5=A2=9E=E5=BC=BA=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/admin/ChannelsView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/admin/ChannelsView.vue b/frontend/src/views/admin/ChannelsView.vue index ac6699e7..940b6d3a 100644 --- a/frontend/src/views/admin/ChannelsView.vue +++ b/frontend/src/views/admin/ChannelsView.vue @@ -642,7 +642,7 @@ function addPricingEntry(sectionIdx: number) { } function updatePricingEntry(sectionIdx: number, idx: number, updated: PricingFormEntry) { - form.platforms[sectionIdx].model_pricing[idx] = updated + form.platforms[sectionIdx].model_pricing.splice(idx, 1, updated) } function removePricingEntry(sectionIdx: number, idx: number) { @@ -877,6 +877,7 @@ async function handleSubmit() { } const { group_ids, model_pricing, model_mapping } = formToAPI() + console.log('[handleSubmit] model_pricing to send:', JSON.stringify(model_pricing)) submitting.value = true try {