mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 11:24:17 +00:00
fix: 修复云同步创建实例任务没有协议问题
This commit is contained in:
@@ -56,7 +56,7 @@ export default {
|
||||
},
|
||||
props: {
|
||||
value: {
|
||||
type: [Array],
|
||||
type: [String, Array],
|
||||
default: () => []
|
||||
},
|
||||
title: {
|
||||
@@ -147,7 +147,7 @@ export default {
|
||||
item.port = selected.port
|
||||
},
|
||||
setDefaultItems(choices) {
|
||||
if (this.value.length > 0) {
|
||||
if (this.value instanceof Array && this.value.length > 0) {
|
||||
const protocols = []
|
||||
this.value.forEach(item => {
|
||||
// 有默认值的情况下,设置为只读或者有id、有setting是平台
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<TabPage :active-menu.sync="config.activeMenu" :submenu="config.submenu" />
|
||||
<TabPage :active-menu.sync="config.activeMenu" v-bind="config" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -27,7 +27,10 @@ export default {
|
||||
hidden: () => !this.$hasPerm('xpack.view_account'),
|
||||
component: () => import('@/views/assets/Cloud/Account/AccountList.vue')
|
||||
}
|
||||
]
|
||||
],
|
||||
actions: {
|
||||
deleteSuccessRoute: 'AssetList'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user