This commit is contained in:
Jacky 2021-07-20 19:58:00 +08:00
parent dfa67550fb
commit c79639794b
4 changed files with 13 additions and 6 deletions

View file

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

View file

@ -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>

View file

@ -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)

View file

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