功能:完善 YumiNail 全栈修复与打包
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
<div class="admin-mobile-card__rows">
|
||||
<div class="admin-mobile-card__row">
|
||||
<span>预计时长</span>
|
||||
<strong>{{ item.approximateDuration || '--' }} 分钟</strong>
|
||||
<strong>{{ formatDuration(item.approximateDuration) }}</strong>
|
||||
</div>
|
||||
<div class="admin-mobile-card__row">
|
||||
<span>互动数据</span>
|
||||
@@ -550,6 +550,14 @@ const nextRequestToken = (key: keyof typeof requestTokens) => {
|
||||
|
||||
const isLatestRequestToken = (key: keyof typeof requestTokens, token: number) => requestTokens[key] === token
|
||||
|
||||
const formatDuration = (value?: string | number | null) => {
|
||||
if (value === undefined || value === null || value === '') {
|
||||
return '--'
|
||||
}
|
||||
const text = String(value).trim()
|
||||
return text.includes('分钟') ? text : `${text}分钟`
|
||||
}
|
||||
|
||||
const viewFormState = reactive({
|
||||
shopId: undefined,
|
||||
title: '',
|
||||
|
||||
Reference in New Issue
Block a user