+
+ 마감가 ({{ openAuctionInfo.type == "buyRice" ? "금" : "쌀" }})
-
@@ -162,6 +175,12 @@ watch(selectedBuyRiceAuction, (auction) => {
bidAmountBuyRiceAuction.value = auction.highestBid ? auction.highestBid.amount : auction.startBidAmount;
});
+function cutDateTime(dateTime: string, showSecond = false) {
+ if (showSecond) {
+ return dateTime.substring(5, 19);
+ }
+ return dateTime.substring(5, 16);
+}
async function bidBuyRiceAuction() {
if (selectedBuyRiceAuction.value === undefined) {
@@ -284,10 +303,83 @@ async function openAuction() {
defineExpose({
refresh,
-})
+});
onMounted(async () => {
void refresh();
console.log("mounted");
});
+
+
diff --git a/hwe/ts/components/NumberInputWithInfo.vue b/hwe/ts/components/NumberInputWithInfo.vue
index 82d6b45a..f4acd479 100644
--- a/hwe/ts/components/NumberInputWithInfo.vue
+++ b/hwe/ts/components/NumberInputWithInfo.vue
@@ -47,7 +47,8 @@ export default defineComponent({
},
title: {
type: String,
- required: true,
+ required: false,
+ default: null,
},
min: {
type: Number,