fix: console页面 url路径调整
This commit is contained in:
@@ -204,9 +204,9 @@ export default {
|
|||||||
}
|
}
|
||||||
let url = ''
|
let url = ''
|
||||||
if (this.terminal.type === 'asset') {
|
if (this.terminal.type === 'asset') {
|
||||||
url = baseUrl + `/terminal.${protocol}?width=` + this.terminal.width + '&height=' + this.terminal.height + '&cols=' + this.terminal.cols + '&rows=' + this.terminal.rows + '&token=' + token + '&assetId=' + this.terminal.assetId + '&accountId=' + this.terminal.accountId + '&uuid=' + this.terminal.uuid
|
url = baseUrl + '/terminal.ws?width=' + this.terminal.width + '&height=' + this.terminal.height + '&cols=' + this.terminal.cols + '&rows=' + this.terminal.rows + '&token=' + token + '&assetId=' + this.terminal.assetId + '&accountId=' + this.terminal.accountId + '&uuid=' + this.terminal.uuid
|
||||||
} else if (this.terminal.type === 'custom') {
|
} else if (this.terminal.type === 'custom') {
|
||||||
url = baseUrl + `/terminal.${protocol}?width=` + this.terminal.width + '&height=' + this.terminal.height + '&cols=' + this.terminal.cols + '&rows=' + this.terminal.rows + '&token=' + token + '&accountId=' + this.terminal.accountId + '&uuid=' + this.terminal.uuid
|
url = baseUrl + '/terminal.ws?width=' + this.terminal.width + '&height=' + this.terminal.height + '&cols=' + this.terminal.cols + '&rows=' + this.terminal.rows + '&token=' + token + '&accountId=' + this.terminal.accountId + '&uuid=' + this.terminal.uuid
|
||||||
Object.keys(this.terminal.custom).forEach(key => {
|
Object.keys(this.terminal.custom).forEach(key => {
|
||||||
if (this.terminal.custom[key]) {
|
if (this.terminal.custom[key]) {
|
||||||
url += '&' + key + '=' + this.terminal.custom[key]
|
url += '&' + key + '=' + this.terminal.custom[key]
|
||||||
|
|||||||
@@ -239,12 +239,12 @@
|
|||||||
<div >
|
<div >
|
||||||
<el-form label-width="120px" size="small" :model="customConnect" label-position = "top" :rules=" customConnect.authProtocol ===2 ? rulesCustom2: rulesCustom" ref="customConnect" v-loading="assetLoading" class="custom">
|
<el-form label-width="120px" size="small" :model="customConnect" label-position = "top" :rules=" customConnect.authProtocol ===2 ? rulesCustom2: rulesCustom" ref="customConnect" v-loading="assetLoading" class="custom">
|
||||||
<el-form-item :label='$t("webshell.protocol")' prop="authProtocol">
|
<el-form-item :label='$t("webshell.protocol")' prop="authProtocol">
|
||||||
<el-select @change="protocolChange" value-key="id" popper-class="config-dropdown" v-model="customConnect.authProtocol" placeholder="" size="small" id="webshell-box-input-protocol">
|
<el-select @change="protocolChange" value-key="id" popper-class="config-dropdown w260 right-box-select-top right-public-box-dropdown-top" v-model="customConnect.authProtocol" placeholder="" size="small" id="webshell-box-input-protocol">
|
||||||
<el-option v-for="item in authProtocol" :id="'dc-principal-op-'+item.value" :key="item.value" :label="item.name" :value="item.value"></el-option>
|
<el-option v-for="item in authProtocol" :id="'dc-principal-op-'+item.value" :key="item.value" :label="item.name" :value="item.value"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label='$t("webshell.authType")' prop="authType" @change="authTypeChange" >
|
<el-form-item :label='$t("webshell.authType")' prop="authType" @change="authTypeChange" >
|
||||||
<el-select value-key="id" popper-class="config-dropdown w260" v-model="customConnect.authType" :disabled="customConnect.authProtocol === 2" placeholder="" size="small" id="webshell-box-input-protocol">
|
<el-select value-key="id" popper-class="config-dropdown w260 right-box-select-top right-public-box-dropdown-top" v-model="customConnect.authType" :disabled="customConnect.authProtocol === 2" placeholder="" size="small" id="webshell-box-input-protocol">
|
||||||
<el-option v-for="item in authType" :id="'dc-principal-op-'+item.value" :key="item.value" :label="item.name" :value="item.value"></el-option>
|
<el-option v-for="item in authType" :id="'dc-principal-op-'+item.value" :key="item.value" :label="item.name" :value="item.value"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -70,6 +70,7 @@
|
|||||||
v-model="item.name"
|
v-model="item.name"
|
||||||
:fetch-suggestions="querySearch"
|
:fetch-suggestions="querySearch"
|
||||||
class="inline-input silence-matchers-key"
|
class="inline-input silence-matchers-key"
|
||||||
|
popper-class="right-box-select-top right-public-box-dropdown-top"
|
||||||
placeholder="key"
|
placeholder="key"
|
||||||
size="mini"
|
size="mini"
|
||||||
@select="handleSelect"
|
@select="handleSelect"
|
||||||
|
|||||||
Reference in New Issue
Block a user