修改样式
This commit is contained in:
@@ -20,16 +20,6 @@ import dayjs from 'dayjs'
|
||||
import useEventEmit from "@/hooks/useEventEmit";
|
||||
const configStore = useConfigStore();
|
||||
|
||||
function fillI18nParams(template: string, params: Record<string, string | number>) {
|
||||
let text = template
|
||||
Object.keys(params).forEach((key) => {
|
||||
const value = String(params[key] ?? '')
|
||||
text = text.replace(new RegExp(`\\{${key}\\}`, 'g'), value)
|
||||
text = text.replace(new RegExp(`\\$\\{${key}\\}`, 'g'), value)
|
||||
})
|
||||
return text
|
||||
}
|
||||
|
||||
// 价格明细
|
||||
const priceDetailRef = ref<InstanceType<typeof PriceDetail>>();
|
||||
// 打开价格明细
|
||||
@@ -139,7 +129,7 @@ const orderTotalItemCount = computed(() => {
|
||||
})
|
||||
|
||||
const orderTotalItemCountText = computed(() => {
|
||||
return fillI18nParams(t('pages.order.totalItemCount'), {
|
||||
return t('pages.order.totalItemCount', {
|
||||
count: orderTotalItemCount.value,
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user