重新计算价格显示
This commit is contained in:
@@ -337,6 +337,7 @@ function SelectResource() {
|
||||
setStatus('load')
|
||||
try {
|
||||
const resp = await allResource()
|
||||
console.log(resp, '/api/resource/all')
|
||||
|
||||
if (!resp.success) {
|
||||
throw new Error('获取套餐失败,请稍后再试')
|
||||
@@ -651,9 +652,9 @@ function name(resource: Resource) {
|
||||
// 短效套餐
|
||||
switch (resource.short.type) {
|
||||
case 1:
|
||||
return `短效包时 ${resource.short.live / 60} 分钟`
|
||||
return `短效包时 ${resource.short.live} 分钟`
|
||||
case 2:
|
||||
return `短效包量 ${resource.short.live / 60} 分钟`
|
||||
return `短效包量 ${resource.short.live} 分钟`
|
||||
}
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user