开关控制排除词汇

This commit is contained in:
2023-03-02 01:48:13 +08:00
parent 794b388130
commit 791da2a195

View File

@@ -282,10 +282,12 @@ const ModelsSelect = (index, model) => {
// 提交新任务
const TaskSubmit = () => {
let data = new_task.value
data.exclude = imageCreate.value.exclude_on ? '' : data.exclude // 是否启用排除词汇
fetch('/api/drawing', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify(new_task.value)
body: JSON.stringify(data)
}).then(res => res.json()).then(data => {
console.log(`${data.id}: ${data.status}`)
tasks.value.push(data)