fix:修复应用授权克隆报错问题

This commit is contained in:
“怀磊”
2022-01-18 17:53:59 +08:00
committed by Jiangjie.Bai
parent ff88a0bd42
commit 6489cbe488

View File

@@ -283,8 +283,8 @@ export default {
let object = this.object
if (!object || Object.keys(object).length === 0) {
if (cloneFrom) {
this.$log.debug('Clone from: ', cloneFrom)
const url = `${this.url}${cloneFrom}/`
const [curUrl, query] = this.url.split('?')
const url = `${curUrl}${cloneFrom}/${query ? ('?' + query) : ''}`
object = await this.getObjectDetail(url)
if (object['name']) {
object.name = this.$t('common.cloneFrom') + ' ' + object.name