Commit cdc86c04 authored by nick zheng's avatar nick zheng

chore: 更正confirm拼写

parent 56786c74
...@@ -839,14 +839,14 @@ function handleStopGenerate() { ...@@ -839,14 +839,14 @@ function handleStopGenerate() {
v-model:is-show-modal="isShowAutoConfigModal" v-model:is-show-modal="isShowAutoConfigModal"
:btn-loading="autoConfigBtnLoading" :btn-loading="autoConfigBtnLoading"
modal-title="AI生成配置信息" modal-title="AI生成配置信息"
@comfirm="handleSettingAgent" @confirm="handleSettingAgent"
/> />
<OptimizeSystemModal <OptimizeSystemModal
v-model:is-show-modal="isShowOptimizeAgentSystemModal" v-model:is-show-modal="isShowOptimizeAgentSystemModal"
:btn-loading="false" :btn-loading="false"
modal-title="角色指令优化" modal-title="角色指令优化"
@comfirm="handleSettingAgentSystem" @confirm="handleSettingAgentSystem"
/> />
</template> </template>
......
...@@ -11,7 +11,7 @@ interface Props { ...@@ -11,7 +11,7 @@ interface Props {
interface Emits { interface Emits {
(e: 'update:isShowModal', value: boolean): void (e: 'update:isShowModal', value: boolean): void
(e: 'comfirm', value: string): void (e: 'confirm', value: string): void
} }
const props = defineProps<Props>() const props = defineProps<Props>()
...@@ -54,9 +54,9 @@ function handleCloseModal() { ...@@ -54,9 +54,9 @@ function handleCloseModal() {
emit('update:isShowModal', false) emit('update:isShowModal', false)
} }
function handleComfirm(inputType: 'random' | 'input') { function handleConfirm(inputType: 'random' | 'input') {
autoConfigInputType.value = inputType autoConfigInputType.value = inputType
emit('comfirm', inputType === 'random' ? '' : autoConfigInputValue.value) emit('confirm', inputType === 'random' ? '' : autoConfigInputValue.value)
} }
</script> </script>
...@@ -83,7 +83,7 @@ function handleComfirm(inputType: 'random' | 'input') { ...@@ -83,7 +83,7 @@ function handleComfirm(inputType: 'random' | 'input') {
<NButton <NButton
:loading="isRandomBtnLoading" :loading="isRandomBtnLoading"
class="h-[32px]! rounded-md! px-6! ml-4!" class="h-[32px]! rounded-md! px-6! ml-4!"
@click="handleComfirm('random')" @click="handleConfirm('random')"
> >
随机生成 随机生成
</NButton> </NButton>
...@@ -92,7 +92,7 @@ function handleComfirm(inputType: 'random' | 'input') { ...@@ -92,7 +92,7 @@ function handleComfirm(inputType: 'random' | 'input') {
type="primary" type="primary"
:disabled="isDisabledBtn" :disabled="isDisabledBtn"
class="h-[32px]! px-6! rounded-md! ml-4!" class="h-[32px]! px-6! rounded-md! ml-4!"
@click="handleComfirm('input')" @click="handleConfirm('input')"
> >
AI生成 AI生成
</NButton> </NButton>
......
...@@ -14,7 +14,7 @@ interface Props { ...@@ -14,7 +14,7 @@ interface Props {
interface Emits { interface Emits {
(e: 'update:isShowModal', value: boolean): void (e: 'update:isShowModal', value: boolean): void
(e: 'comfirm', value: string): void (e: 'confirm', value: string): void
} }
const props = defineProps<Props>() const props = defineProps<Props>()
...@@ -105,7 +105,7 @@ function handleCloseModal() { ...@@ -105,7 +105,7 @@ function handleCloseModal() {
} }
function handleAdditionalPrompt() { function handleAdditionalPrompt() {
emit('comfirm', agentSystem.value) emit('confirm', agentSystem.value)
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment