fix: wrap model_change logic in nextTick for improved reactivity
--bug=1058686 --user=刘瑞斌 【应用编排】在图片生成节点切换模型,会带上一个模型的参数 https://www.tapd.cn/62980211/s/1730547
This commit is contained in:
parent
df9b7f208b
commit
3f1c3bc68f
@ -153,7 +153,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import NodeContainer from '@/workflow/common/NodeContainer.vue'
|
import NodeContainer from '@/workflow/common/NodeContainer.vue'
|
||||||
import { computed, onMounted, ref } from 'vue'
|
import {computed, nextTick, onMounted, ref} from 'vue'
|
||||||
import { groupBy, set } from 'lodash'
|
import { groupBy, set } from 'lodash'
|
||||||
import applicationApi from '@/api/application/application'
|
import applicationApi from '@/api/application/application'
|
||||||
import useStore from '@/stores'
|
import useStore from '@/stores'
|
||||||
@ -225,11 +225,13 @@ function getSelectModel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const model_change = () => {
|
const model_change = () => {
|
||||||
if (form_data.value.model_id) {
|
nextTick(()=>{
|
||||||
AIModeParamSettingDialogRef.value?.reset_default(form_data.value.model_id, id)
|
if (form_data.value.model_id) {
|
||||||
} else {
|
AIModeParamSettingDialogRef.value?.reset_default(form_data.value.model_id, id)
|
||||||
refreshParam({})
|
} else {
|
||||||
}
|
refreshParam({})
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const openAIParamSettingDialog = (modelId: string) => {
|
const openAIParamSettingDialog = (modelId: string) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user