chore: 修改参数提示

This commit is contained in:
CaptainB 2024-09-13 14:33:35 +08:00 committed by 刘瑞斌
parent df1fd3f89e
commit 88b6d8b9d8

View File

@ -574,13 +574,17 @@ const errorWrite = (chat: any, message?: string) => {
function chatMessage(chat?: any, problem?: string, re_chat?: boolean) {
// query
let msg = []
for (let f of apiInputFieldList.value) {
if (f.required && !route.query[f.field]) {
MsgWarning(`请在接入的URL补全必填参数${f.field}`)
return
msg.push(f.field)
}
form_data.value[f.field] = route.query[f.field]
}
if (msg.length > 0) {
MsgWarning(`请在URL中填写参数 ${msg.join('、')}的值`)
return
}
loading.value = true
if (!chat) {
chat = reactive({