fix: 修复平台列表修复克隆名称带空格不能创建问题

This commit is contained in:
“huailei000”
2022-10-17 10:36:47 +08:00
committed by Jiangjie.Bai
parent c2cbd3f5b0
commit 8863693541

View File

@@ -326,9 +326,9 @@ export default {
const url = `${curUrl}${cloneFrom}/${query ? ('?' + query) : ''}`
object = await this.getObjectDetail(url)
if (object['name']) {
object.name = this.$t('common.cloneFrom') + ' ' + object.name
object.name = this.$t('common.cloneFrom') + object.name
} else if (object['hostname']) {
object.hostname = this.$t('common.cloneFrom') + ' ' + object.hostname
object.hostname = this.$t('common.cloneFrom') + object.hostname
}
} else {
object = await this.getObjectDetail(this.iUrl)