調整存量顯示文字 | 設定getData函數的預設時間間隔為1

This commit is contained in:
koko1108 2025-10-23 18:03:00 +08:00
parent 92e9990c1f
commit 8d8349a251
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
? "3、4槽" ? "3、4槽"
: "其他" : "其他"
}} </p> }} </p>
<p>最大存量: {{ current_stock }} </p> <p>目前存量: {{ current_stock }} </p>
<p>{{ updateTime }}</p> <p>{{ updateTime }}</p>
</div> </div>
</div> </div>

View File

@ -57,7 +57,7 @@ const frozen_temp_chart = ref(null);
const data = ref([]); const data = ref([]);
const getData = async (timeInterval) => { const getData = async (timeInterval = 1) => {
const res = await getDashboardTemp({ const res = await getDashboardTemp({
timeInterval, // =>1.4.8 timeInterval, // =>1.4.8
tempOption: 2, // 1:;2: tempOption: 2, // 1:;2:

View File

@ -80,7 +80,7 @@ onMounted(() => {
]); ]);
}); });
const getData = async (timeInterval, typeOption) => { const getData = async (timeInterval = 1, typeOption) => {
const res = await getDashboardTemp({ const res = await getDashboardTemp({
timeInterval, // =>1.4.8 timeInterval, // =>1.4.8
tempOption: 1, tempOption: 1,