fix: 修复ipam type 下拉重复内容

This commit is contained in:
@changcode
2022-03-21 18:05:33 +08:00
parent 0aa0716ce5
commit 72435b9581
3 changed files with 13 additions and 40 deletions

View File

@@ -310,10 +310,10 @@ export default {
url = '/dc/cabinet/template'
} else if (this.importUrl.indexOf('dc') > -1) {
url = '/dc/template'
} else if (this.importUrl.indexOf('/ipam/subnet') > -1) {
} else if (this.importUrl.indexOf('ipam/subnet') > -1) {
url = '/ipam/subnet/template'
} else if (this.importUrl.indexOf('/ipam/ip') > -1) {
url = ' /ipam/ip/template'
} else if (this.importUrl.indexOf('ipam/ip') > -1) {
url = '/ipam/ip/template'
}
if (!url) {
console.error('no interface support')