fix: 修复云同步创建实例任务没有协议问题

This commit is contained in:
“huailei000”
2023-02-07 19:55:52 +08:00
committed by huailei
parent 83c21e2304
commit b0b2954311
2 changed files with 7 additions and 4 deletions

View File

@@ -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是平台

View File

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