diff --git a/.env.production b/.env.production index 15d4d43..128bf2f 100644 --- a/.env.production +++ b/.env.production @@ -14,8 +14,8 @@ VITE_API_PAY_PREFIX = '/pay' VITE_API_PAY_TARGET = 'https://sxwz.xueai.art' # http://43.248.133.202 # 任务处理模块 -VITE_API_WORKFLOW_UPLOAD = 'https://aipaint.xueai.art/aigc/workflow/file/upload' # https://sxwz.xueai.art/workflow https://designtools.xueai.art/workflow -VITE_API_WORKFLOW_WS = 'wss://aipaint.xueai.art/testworkflow' +VITE_API_WORKFLOW_UPLOAD = 'https://talkingdraw.xueai.art/aigc/workflow/file/upload' # https://sxwz.xueai.art/workflow https://designtools.xueai.art/workflow +VITE_API_WORKFLOW_WS = 'wss://talkingdraw.xueai.art/testworkflow' # 是否开启KKFileView FILE_OPEN_PREVIEW = false diff --git a/src/components/dialogBox/index.vue b/src/components/dialogBox/index.vue index 5cb96f5..09c32fd 100644 --- a/src/components/dialogBox/index.vue +++ b/src/components/dialogBox/index.vue @@ -63,7 +63,7 @@ const props = defineProps({ const router = useRouter() const useDisplay = useDisplayStore() -const type = ref('image') +const type = ref('text') const prompt = ref('一个女孩在树下吃苹果') const model = ref('flux') @@ -96,9 +96,9 @@ const handleStart = async () => { console.log('生成开始', isgerenate.value) const imgs = [] referenceImages.value.forEach((img, index) => { - imgs.push({ name: `image_${index + 1}`, data: img.url }) + imgs.push({ name: `image_${index + 1}`, url: img.url }) }) - + console.log('imgs', imgs) const data = { AIGC: 'Painting', platform: 'runninghub', @@ -136,12 +136,6 @@ watch(() => useDisplay.isSubGerenate, (newValue) => { watch(() => type.value, (newValue) => { console.log('type.value', newValue) }) - -onMounted(() => { - if (props.generate) { - generate() - } -})