refactor: authType简化NONE/COOKIE/HEADER三种

This commit is contained in:
mediabot-pt
2026-07-06 01:27:12 +08:00
parent 821f0b909d
commit 8d4a3cc42f

View File

@@ -63,14 +63,13 @@
<div style="margin-bottom:12px;padding:10px 12px;border:1px solid #e6a23c;border-radius:4px;background:#fdf6ec">
<div style="font-weight:500;margin-bottom:6px;font-size:13px">认证方式</div>
<div style="display:flex;gap:8px;flex-wrap:wrap;align-items:center">
<el-select v-model="authType" size="small" @change="syncAuth" style="width:120px">
<el-select v-model="authType" size="small" @change="syncAuth" style="width:100px">
<el-option label="无" value="NONE"/>
<el-option label="Cookie" value="COOKIE"/>
<el-option label="Token" value="TOKEN"/>
<el-option label="Basic" value="BASIC"/>
<el-option label="API Key" value="API_KEY"/>
<el-option label="Header" value="HEADER"/>
</el-select>
<el-input v-if="authType!=='NONE'" v-model="authValue" size="small" placeholder="cookie/token值或占位符" @input="syncAuth" style="flex:1;max-width:300px"/>
<el-input v-if="authType==='HEADER'" v-model="authValue" size="small" placeholder="如 Authorization: Bearer {token}" @input="syncAuth" style="flex:1;max-width:350px"/>
<span v-if="authType==='COOKIE'" style="color:#909399;font-size:12px">mediabot 管理 cookie</span>
</div>
</div>