調整存量顯示文字 | 設定getData函數的預設時間間隔為1
This commit is contained in:
parent
92e9990c1f
commit
8d8349a251
@ -10,7 +10,7 @@
|
||||
? "3、4槽"
|
||||
: "其他"
|
||||
}} </p>
|
||||
<p>最大存量: {{ current_stock }} 噸</p>
|
||||
<p>目前存量: {{ current_stock }} 噸</p>
|
||||
<p>{{ updateTime }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -57,7 +57,7 @@ const frozen_temp_chart = ref(null);
|
||||
|
||||
const data = ref([]);
|
||||
|
||||
const getData = async (timeInterval) => {
|
||||
const getData = async (timeInterval = 1) => {
|
||||
const res = await getDashboardTemp({
|
||||
timeInterval, // 時間間隔=>1.4.8
|
||||
tempOption: 2, // 1:即時溫度;2:冷藏溫度
|
||||
|
||||
@ -80,7 +80,7 @@ onMounted(() => {
|
||||
]);
|
||||
});
|
||||
|
||||
const getData = async (timeInterval, typeOption) => {
|
||||
const getData = async (timeInterval = 1, typeOption) => {
|
||||
const res = await getDashboardTemp({
|
||||
timeInterval, // 時間間隔=>1.4.8
|
||||
tempOption: 1,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user