mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-07 21:46:12 +08:00
AI配置界面的token支持切换是否显示
This commit is contained in:
parent
1da46e8dc5
commit
65936e7d0d
@ -130,7 +130,7 @@
|
||||
dense
|
||||
v-model="aiConfig.apiToken"
|
||||
v-if="aiConfig.apiType === 'openai'"
|
||||
type="password"
|
||||
:type="tokenInputTypes[index] || 'password'"
|
||||
class="col-7"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
@ -141,6 +141,22 @@
|
||||
class="q-pa-xs"
|
||||
/>
|
||||
</template>
|
||||
<template v-slot:append>
|
||||
<q-icon
|
||||
name="visibility_off"
|
||||
@click="tokenInputTypes[index] = 'password'"
|
||||
size="16px"
|
||||
class="cursor-pointer"
|
||||
v-if="tokenInputTypes[index] === 'text'"
|
||||
/>
|
||||
<q-icon
|
||||
name="visibility"
|
||||
@click="tokenInputTypes[index] = 'text'"
|
||||
size="16px"
|
||||
class="cursor-pointer"
|
||||
v-else
|
||||
/>
|
||||
</template>
|
||||
</q-input>
|
||||
</div>
|
||||
</div>
|
||||
@ -180,6 +196,7 @@ export default defineComponent({
|
||||
apiToAdd: "openai",
|
||||
aiConfigs: [],
|
||||
models: [],
|
||||
tokenInputTypes: [],
|
||||
};
|
||||
},
|
||||
emits: ["save"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user