diff --git a/frontend/src/views/Prices.vue b/frontend/src/views/Prices.vue index 5c0cb80..5097cd6 100644 --- a/frontend/src/views/Prices.vue +++ b/frontend/src/views/Prices.vue @@ -464,6 +464,12 @@ const billingTypeMap = { const getStatus = (status) => statusMap[status] || status const getBillingType = (type) => billingTypeMap[type] || type +// 添加getModelType函数 +const getModelType = (type) => { + if (!type) return '' + return modelTypeMap.value[type] || type +} + const calculateRate = (price, currency) => { if (!price) return 0 return currency === 'USD' ? (price / 2).toFixed(4) : (price / 14).toFixed(4)