2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

feat: 发布v2.3.11

This commit is contained in:
耗子
2024-10-23 03:13:44 +08:00
parent a539532ae2
commit 81843470b7
4 changed files with 14 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ func initConf() {
func initGlobal() {
app.Root = app.Conf.MustString("app.root")
app.Version = "2.3.10"
app.Version = "2.3.11"
app.Locale = app.Conf.MustString("app.locale")
// 初始化时区

View File

@@ -24,6 +24,16 @@ const handleSubmit = async () => {
window.$message.success('创建成功')
loading.value = false
show.value = false
model.value = {
name: '',
host: '127.0.0.1',
port: 22,
auth_method: 'password',
user: 'root',
password: '',
key: '',
remark: ''
}
})
.catch(() => {
loading.value = false

View File

@@ -265,8 +265,8 @@ onUnmounted(() => {
</n-layout-sider>
</n-layout>
</common-page>
<create-modal v-if="create" v-model:show="create" />
<update-modal v-if="update" v-model:show="update" v-model:id="updateId" />
<create-modal v-model:show="create" />
<update-modal v-model:show="update" v-model:id="updateId" />
</template>
<style scoped lang="scss">

View File

@@ -31,7 +31,7 @@ const handleSubmit = async () => {
})
}
onMounted(() => {
watch(show, () => {
if (id.value > 0) {
ssh.get(id.value).then((res) => {
model.value.name = res.data.name