|
@ -9,13 +9,13 @@ onMounted(async () => { |
|
|
const res = await getStatus() |
|
|
const res = await getStatus() |
|
|
console.log(res) |
|
|
console.log(res) |
|
|
console.log(systemStore.systemStatus) |
|
|
console.log(systemStore.systemStatus) |
|
|
// systemStore.updateSystemStatus(res) |
|
|
|
|
|
|
|
|
systemStore.updateSystemStatus(res) |
|
|
startProgress() |
|
|
startProgress() |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
socket.init((data: System.SystemStatus) => { |
|
|
socket.init((data: System.SystemStatus) => { |
|
|
console.log(data) |
|
|
console.log(data) |
|
|
// systemStore.updateSystemStatus(data) |
|
|
|
|
|
|
|
|
systemStore.updateSystemStatus(data) |
|
|
}, 'status') |
|
|
}, 'status') |
|
|
|
|
|
|
|
|
const progress = ref(0) |
|
|
const progress = ref(0) |
|
|