fix: 解决暗黑模式下主机地址样式问题 (#3386)

Refs #3378
This commit is contained in:
ssongliu 2023-12-19 16:40:06 +08:00 committed by GitHub
parent 10bd640a9b
commit df513c49e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -8,9 +8,9 @@
<el-col :span="22"> <el-col :span="22">
<el-form ref="hostInfoRef" label-position="top" :model="dialogData.rowData" :rules="rules"> <el-form ref="hostInfoRef" label-position="top" :model="dialogData.rowData" :rules="rules">
<el-form-item :label="$t('terminal.ip')" prop="addr"> <el-form-item :label="$t('terminal.ip')" prop="addr">
<span v-if="dialogData.rowData!.addr === '127.0.0.1' && dialogData.title === 'edit'"> <el-tag v-if="dialogData.rowData!.addr === '127.0.0.1' && dialogData.title === 'edit'">
{{ dialogData.rowData!.addr }} {{ dialogData.rowData!.addr }}
</span> </el-tag>
<el-input @change="isOK = false" v-else clearable v-model.trim="dialogData.rowData!.addr" /> <el-input @change="isOK = false" v-else clearable v-model.trim="dialogData.rowData!.addr" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('commons.login.username')" prop="user"> <el-form-item :label="$t('commons.login.username')" prop="user">

View file

@ -17,9 +17,7 @@
/> />
<el-form-item :label="$t('terminal.ip')" prop="addr"> <el-form-item :label="$t('terminal.ip')" prop="addr">
<el-input @change="isOK = false" v-if="!isLocal" clearable v-model.trim="hostInfo.addr" /> <el-input @change="isOK = false" v-if="!isLocal" clearable v-model.trim="hostInfo.addr" />
<div style="margin-left: 12px"> <el-tag v-if="isLocal">{{ hostInfo.addr }}</el-tag>
<span v-if="isLocal">{{ hostInfo.addr }}</span>
</div>
</el-form-item> </el-form-item>
<el-form-item :label="$t('commons.login.username')" prop="user"> <el-form-item :label="$t('commons.login.username')" prop="user">
<el-input @change="isOK = false" clearable v-model="hostInfo.user" /> <el-input @change="isOK = false" clearable v-model="hostInfo.user" />