Skip to content

Commit

Permalink
feat: 发布v2.3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 22, 2024
1 parent a539532 commit 8184347
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/bootstrap/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

// 初始化时区
Expand Down
10 changes: 10 additions & 0 deletions web/src/views/ssh/CreateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions web/src/views/ssh/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/ssh/UpdateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8184347

Please sign in to comment.