fix: price
This commit is contained in:
@@ -293,8 +293,7 @@ onMounted(() => {
|
||||
router.push('/posts');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</
|
||||
<template>
|
||||
<Toast />
|
||||
|
||||
@@ -323,9 +322,9 @@ onMounted(() => {
|
||||
|
||||
<!-- Price -->
|
||||
<div class="col-span-1">
|
||||
<label for="price" class="block text-sm font-medium text-gray-700 mb-1">价格 (¥)</label>
|
||||
<InputNumber id="price" v-model="post.price" mode="currency" currency="CNY" :minFractionDigits="2"
|
||||
class="w-full" />
|
||||
<label for="price" class="block text-sm font-medium text-gray-700 mb-1">价格 (分)</label>
|
||||
<InputNumber id="price" v-model="post.price" :minFractionDigits="0" :maxFractionDigits="0"
|
||||
class="w-full" placeholder="输入价格,单位:分" />
|
||||
</div>
|
||||
|
||||
<!-- Discount -->
|
||||
|
||||
Reference in New Issue
Block a user