mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 18:32:48 +00:00
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">
|
||||
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 applicationApi from '@/api/application/application'
|
||||
import useStore from '@/stores'
|
||||
|
|
@ -225,11 +225,13 @@ function getSelectModel() {
|
|||
}
|
||||
|
||||
const model_change = () => {
|
||||
if (form_data.value.model_id) {
|
||||
AIModeParamSettingDialogRef.value?.reset_default(form_data.value.model_id, id)
|
||||
} else {
|
||||
refreshParam({})
|
||||
}
|
||||
nextTick(()=>{
|
||||
if (form_data.value.model_id) {
|
||||
AIModeParamSettingDialogRef.value?.reset_default(form_data.value.model_id, id)
|
||||
} else {
|
||||
refreshParam({})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const openAIParamSettingDialog = (modelId: string) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue