mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
bug fix
This commit is contained in:
parent
dfa67550fb
commit
c79639794b
4 changed files with 13 additions and 6 deletions
1
nginx-ui-frontend/.gitignore
vendored
1
nginx-ui-frontend/.gitignore
vendored
|
@ -1,6 +1,5 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
/dist
|
|
||||||
|
|
||||||
|
|
||||||
# local env files
|
# local env files
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
:openKeys="openKeys"
|
:openKeys="openKeys"
|
||||||
mode="inline"
|
mode="inline"
|
||||||
@openChange="onOpenChange"
|
@openChange="onOpenChange"
|
||||||
|
:default-selected-keys="[$route.path.substring(1)]"
|
||||||
>
|
>
|
||||||
<template v-for="sidebar in visible(sidebars)">
|
<template v-for="sidebar in visible(sidebars)">
|
||||||
<a-menu-item v-if="!sidebar.children" :key="sidebar.path"
|
<a-menu-item v-if="!sidebar.children" :key="sidebar.path"
|
||||||
|
@ -67,15 +68,21 @@ export default {
|
||||||
.sidebar {
|
.sidebar {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
|
.ant-menu-inline {
|
||||||
|
height: calc(100vh - 120px);
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
.ant-menu-item {
|
||||||
|
width: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-layout-sider-collapsed .logo {
|
.ant-layout-sider-collapsed .logo {
|
||||||
width: 48px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-menu-inline, .ant-menu-vertical, .ant-menu-vertical-left {
|
.ant-menu-inline, .ant-menu-vertical, .ant-menu-vertical-left {
|
||||||
border-right: unset;
|
border-right: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :md="12" :sm="24">
|
<a-col :md="12" :sm="24">
|
||||||
<a-card :title="name ? '编辑站点:' + name : '添加站点'">
|
<a-card :title="name ? '编辑站点:' + name : '添加站点'">
|
||||||
<p>您的配置文件中应当有对应的字段时,下列表单中的设置才能生效。</p>
|
<p>您的配置文件中应当有对应的字段时,下列表单中的设置才能生效,配置文件名称创建后不可修改。</p>
|
||||||
<std-data-entry :data-list="columns" v-model="config" @change_support_ssl="change_support_ssl"/>
|
<std-data-entry :data-list="columns" v-model="config" @change_support_ssl="change_support_ssl"/>
|
||||||
<cert-info :domain="name"/>
|
<cert-info :domain="name" ref="cert-info" v-if="name"/>
|
||||||
<br/>
|
<br/>
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button @click="issue_cert" type="primary" ghost>
|
<a-button @click="issue_cert" type="primary" ghost>
|
||||||
|
@ -176,6 +176,7 @@ export default {
|
||||||
this.$api.domain.save(this.name ? this.name : this.config.name, {content: this.configText}).then(r => {
|
this.$api.domain.save(this.name ? this.name : this.config.name, {content: this.configText}).then(r => {
|
||||||
this.parse(r)
|
this.parse(r)
|
||||||
this.$message.success("保存成功")
|
this.$message.success("保存成功")
|
||||||
|
this.$refs["cert-info"].get()
|
||||||
}).catch(r => {
|
}).catch(r => {
|
||||||
console.log(r)
|
console.log(r)
|
||||||
this.$message.error("保存错误" + r.message !== undefined ? " " + r.message : null, 10)
|
this.$message.error("保存错误" + r.message !== undefined ? " " + r.message : null, 10)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":"0.1.0","build_id":25}
|
{"version":"0.1.1","build_id":2}
|
Loading…
Add table
Add a link
Reference in a new issue