开关控制排除词汇
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user