File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
ui/src/workflow/nodes/image-generate Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 153153
154154<script setup lang="ts">
155155import NodeContainer from ' @/workflow/common/NodeContainer.vue'
156- import { computed , onMounted , ref } from ' vue'
156+ import {computed , nextTick , onMounted , ref } from ' vue'
157157import { groupBy , set } from ' lodash'
158158import applicationApi from ' @/api/application/application'
159159import useStore from ' @/stores'
@@ -225,11 +225,13 @@ function getSelectModel() {
225225}
226226
227227const model_change = () => {
228- if (form_data .value .model_id ) {
229- AIModeParamSettingDialogRef .value ?.reset_default (form_data .value .model_id , id )
230- } else {
231- refreshParam ({})
232- }
228+ nextTick (()=> {
229+ if (form_data .value .model_id ) {
230+ AIModeParamSettingDialogRef .value ?.reset_default (form_data .value .model_id , id )
231+ } else {
232+ refreshParam ({})
233+ }
234+ })
233235}
234236
235237const openAIParamSettingDialog = (modelId : string ) => {
You can’t perform that action at this time.
0 commit comments