mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
bug fix
This commit is contained in:
parent
43b490669e
commit
c164cd16d6
11 changed files with 30 additions and 18 deletions
|
@ -1,2 +1,3 @@
|
|||
VUE_APP_API_ROOT = /
|
||||
VUE_APP_API_WSS_ROOT =
|
||||
VUE_APP_API_WSS_ROOT =
|
||||
VUE_APP_API_WSS_TOKEN =
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
VUE_APP_API_ROOT = /api
|
||||
VUE_APP_API_WSS_ROOT =
|
||||
VUE_APP_API_WSS_TOKEN =
|
||||
|
|
|
@ -111,7 +111,8 @@ export default {
|
|||
}
|
||||
},
|
||||
created() {
|
||||
this.websocket = new WebSocket(process.env["VUE_APP_API_WSS_ROOT"] + "/analytic")
|
||||
this.websocket = new WebSocket(process.env["VUE_APP_API_WSS_ROOT"] + "/analytic?token="
|
||||
+ process.env["VUE_APP_API_WSS_TOKEN"])
|
||||
this.websocket.onmessage = this.wsOnMessage
|
||||
this.websocket.onopen = this.wsOpen
|
||||
this.websocket.onerror = this.wsOnError
|
||||
|
@ -167,21 +168,25 @@ export default {
|
|||
<style lang="less" scoped>
|
||||
.ant-card {
|
||||
margin: 10px;
|
||||
@media (max-width: 512px) {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.chart {
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.chart_dashboard {
|
||||
padding: 50px;
|
||||
padding: 60px;
|
||||
.description {
|
||||
width: 120px;
|
||||
text-align: center
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 512px) {
|
||||
margin: 10px 0;
|
||||
.chart_dashboard {
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</a-card>
|
||||
</a-col>
|
||||
<a-col :md="12" :sm="24">
|
||||
<a-card title="配置文件实时编辑">
|
||||
<a-card title="配置文件编辑">
|
||||
<a-textarea
|
||||
v-model="configText"
|
||||
:rows="36"
|
||||
|
|
|
@ -1,4 +1 @@
|
|||
{
|
||||
"version": "0.1.0",
|
||||
"build_id": 1
|
||||
}
|
||||
{"version":"0.1.0","build_id":9}
|
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
devServer: {
|
||||
proxy: 'https://nginx.jackyu.cn/'
|
||||
proxy: 'https://nginx.jackyu.cn/api'
|
||||
},
|
||||
|
||||
productionSourceMap: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue