fix(channel): splice替换model_pricing条目 + 增强调试日志

This commit is contained in:
erio
2026-03-30 21:47:06 +08:00
parent 79c3f4481a
commit bef6728ada
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
0.1.105.12
0.1.105.13
+2 -1
View File
@@ -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 {