mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-13 03:15:48 +02:00
feat: supported sub path deployment #68
This commit is contained in:
parent
612d65676a
commit
f8488a1286
12 changed files with 73 additions and 60 deletions
|
@ -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
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue