Commit cdc86c04 authored by nick zheng's avatar nick zheng

chore: 更正confirm拼写

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