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