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:
@@ -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")
|
||||
|
||||
// 初始化时区
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user