feat: add draw same image for midjourney page

This commit is contained in:
RockYang
2024-02-29 11:44:09 +08:00
parent 8182e6797f
commit 2c7d472069
4 changed files with 65 additions and 46 deletions

View File

@@ -555,6 +555,7 @@ const options = [
},
]
const router = useRouter()
const params = ref({
task_type: "image",
rate: rates[0].value,
@@ -565,7 +566,7 @@ const params = ref({
img_arr: [],
raw: false,
weight: 0.25,
prompt: "",
prompt: router.currentRoute.value.params["prompt"] ?? "",
neg_prompt: "",
tile: false,
quality: 0
@@ -577,7 +578,6 @@ const activeName = ref('image')
const runningJobs = ref([])
const finishedJobs = ref([])
const router = useRouter()
const socket = ref(null)
const imgCalls = ref(0)