完善二维码池 OCR 配置与识别
This commit is contained in:
@@ -39,6 +39,8 @@ const isStructuredConfig = computed(() => {
|
||||
return trimmed.startsWith('{') || trimmed.startsWith('[')
|
||||
})
|
||||
|
||||
const isSecretConfig = computed(() => props.config.key.includes('token'))
|
||||
|
||||
const selectOptions = computed<SystemConfigOption[] | null>(() => {
|
||||
const options = getSystemConfigSelectOptions(props.config.key)
|
||||
if (!options) return null
|
||||
@@ -92,7 +94,12 @@ async function handleSave() {
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-else label="配置值" class="full-control">
|
||||
<el-input v-model="value" placeholder="配置值" />
|
||||
<el-input
|
||||
v-model="value"
|
||||
:type="isSecretConfig ? 'password' : 'text'"
|
||||
:show-password="isSecretConfig"
|
||||
placeholder="配置值"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="配置说明" class="desc-item">
|
||||
|
||||
Reference in New Issue
Block a user