NEZ-613 fix:
1.asset 编辑页面bug ssh port 默认端口:22 2.asset model 搜索分页国际化添加
This commit is contained in:
@@ -379,12 +379,10 @@ export default {
|
||||
handler (n) {
|
||||
if (n) {
|
||||
this.vmLock = n.vm === 1 // vm == 1 时,锁定model和location
|
||||
if (!this.editAsset.authProtocolPort) {
|
||||
if (n.authProtocol === this.assetConstants.authProtocolData.ssh) {
|
||||
this.editAsset.authProtocolPort = 22
|
||||
} else if (n.authProtocol === this.assetConstants.authProtocolData.telnet) {
|
||||
this.editAsset.authProtocolPort = 23
|
||||
}
|
||||
if (n.authProtocol === this.assetConstants.authProtocolData.ssh) {
|
||||
this.editAsset.authProtocolPort = 22
|
||||
} else if (n.authProtocol === this.assetConstants.authProtocolData.telnet) {
|
||||
this.editAsset.authProtocolPort = 23
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user