Jacky 3 лет назад
Родитель
Сommit
c79639794b

+ 0 - 1
nginx-ui-frontend/.gitignore

@@ -1,6 +1,5 @@
 .DS_Store
 node_modules
-/dist
 
 
 # local env files

+ 9 - 2
nginx-ui-frontend/src/layouts/SideBar.vue

@@ -5,6 +5,7 @@
             :openKeys="openKeys"
             mode="inline"
             @openChange="onOpenChange"
+            :default-selected-keys="[$route.path.substring(1)]"
         >
             <template v-for="sidebar in visible(sidebars)">
                 <a-menu-item v-if="!sidebar.children" :key="sidebar.path"
@@ -67,15 +68,21 @@ export default {
 .sidebar {
     position: fixed;
     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 {
-    width: 48px;
     overflow: hidden;
 }
 
 .ant-menu-inline, .ant-menu-vertical, .ant-menu-vertical-left {
     border-right: unset;
 }
-
 </style>

+ 3 - 2
nginx-ui-frontend/src/views/domain_edit/DomainEdit.vue

@@ -2,9 +2,9 @@
     <a-row>
         <a-col :md="12" :sm="24">
             <a-card :title="name ? '编辑站点:' + name : '添加站点'">
-                <p>您的配置文件中应当有对应的字段时,下列表单中的设置才能生效。</p>
+                <p>您的配置文件中应当有对应的字段时,下列表单中的设置才能生效,配置文件名称创建后不可修改。</p>
                 <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/>
                 <a-space>
                     <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.parse(r)
                 this.$message.success("保存成功")
+                this.$refs["cert-info"].get()
             }).catch(r => {
                 console.log(r)
                 this.$message.error("保存错误" + r.message !== undefined ? " " + r.message : null, 10)

+ 1 - 1
nginx-ui-frontend/version.json

@@ -1 +1 @@
-{"version":"0.1.0","build_id":25}
+{"version":"0.1.1","build_id":2}