mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
revert: 去掉debug配置,不能区分调试和嵌入
This commit is contained in:
parent
398d8b3f19
commit
7c5fb47b75
|
|
@ -51,7 +51,6 @@
|
|||
ref="dynamicsFormRef"
|
||||
/>
|
||||
<DynamicsForm
|
||||
v-if="debug"
|
||||
v-model="api_form_data"
|
||||
:model="api_form_data"
|
||||
label-position="left"
|
||||
|
|
@ -242,10 +241,6 @@ const props = defineProps({
|
|||
type: String,
|
||||
default: ''
|
||||
}, // 历史记录Id
|
||||
debug: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
|
||||
const emit = defineEmits(['refresh', 'scroll'])
|
||||
|
|
@ -460,16 +455,11 @@ function checkInputParam() {
|
|||
// 浏览器query参数找到接口传参
|
||||
let msg = []
|
||||
for (let f of apiInputFieldList.value) {
|
||||
if (!props.debug) {
|
||||
if (f.required && !route.query[f.field]) {
|
||||
msg.push(f.field)
|
||||
}
|
||||
if (!api_form_data.value[f.field]) {
|
||||
api_form_data.value[f.field] = route.query[f.field]
|
||||
} else {
|
||||
if (f.required && !api_form_data.value[f.field]) {
|
||||
MsgWarning('请填写所有必填字段')
|
||||
return false
|
||||
}
|
||||
}
|
||||
if (!api_form_data.value[f.field]) {
|
||||
msg.push(f.field)
|
||||
}
|
||||
}
|
||||
if (msg.length > 0) {
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="scrollbar-height">
|
||||
<AiChat :data="detail" :debug="true"></AiChat>
|
||||
<AiChat :data="detail"></AiChat>
|
||||
</div>
|
||||
</div>
|
||||
</el-collapse-transition>
|
||||
|
|
|
|||
|
|
@ -108,7 +108,6 @@
|
|||
:appId="applicationDetail?.id"
|
||||
:record="currentRecordList"
|
||||
:chatId="currentChatId"
|
||||
:debug="true"
|
||||
@refresh="refresh"
|
||||
@scroll="handleScroll"
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue