功能:完善 YumiNail 全栈修复与打包
This commit is contained in:
@@ -228,7 +228,7 @@ const loadLoginShops = async (account = formState.account) => {
|
||||
if (isLoginShopPrefetchUnsupported(error)) {
|
||||
applyLoginShopSelection({
|
||||
allowShoplessLogin: true,
|
||||
message: '当前环境暂未开放登录前店铺预加载,可直接登录。',
|
||||
message: '可直接登录;如账号绑定多家门店,登录后可在个人中心切换当前门店。',
|
||||
shops: []
|
||||
})
|
||||
} else {
|
||||
|
||||
@@ -153,7 +153,7 @@ const insightItems = computed(() => {
|
||||
if (stats.totalProducts === 0) {
|
||||
items.push({
|
||||
title: '还没有可售作品',
|
||||
description: '可以先补充几款基础作品,首页和前台作品页会更完整,也更方便测试完整下单流程。'
|
||||
description: '先补充基础作品,首页和作品页会更完整,顾客也能更顺畅地下单。'
|
||||
})
|
||||
} else {
|
||||
items.push({
|
||||
|
||||
@@ -324,7 +324,7 @@
|
||||
|
||||
<AdminMobileFab
|
||||
:visible="isMobile && activeTab === 'permissions' && hasPermission('permission:create') && !permissionModalVisible"
|
||||
label="鏂板鏉冮檺"
|
||||
label="新增权限"
|
||||
@click="showAddPermissionModal"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -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: '',
|
||||
|
||||
@@ -338,7 +338,7 @@
|
||||
|
||||
<AdminMobileFab
|
||||
:visible="isMobile && hasPermission('shop:create') && !modalVisible && !viewModalVisible"
|
||||
label="鏂板搴楅摵"
|
||||
label="新增店铺"
|
||||
@click="showAddModal"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user