feat: supported sub path deployment #68

This commit is contained in:
0xJacky 2023-01-28 00:13:25 +08:00
parent 612d65676a
commit f8488a1286
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
12 changed files with 73 additions and 60 deletions

View file

@ -7,11 +7,11 @@ import {onMounted, onUnmounted, reactive, ref} from 'vue'
import analytic from '@/api/analytic'
import ws from '@/lib/websocket'
import {bytesToSize} from '@/lib/helper'
import ReconnectingWebSocket from 'reconnecting-websocket'
const {$gettext} = useGettext()
const websocket = ws('/api/analytic')
websocket.onmessage = wsOnMessage
let websocket: ReconnectingWebSocket | WebSocket
const host = reactive({})
const cpu = ref('0.0')
@ -61,6 +61,9 @@ onMounted(() => {
disk_io_analytic[0].data = disk_io_analytic[0].data.concat(r.disk_io.writes)
disk_io_analytic[1].data = disk_io_analytic[1].data.concat(r.disk_io.reads)
websocket = ws('api/analytic')
websocket.onmessage = wsOnMessage
})
})