1
This commit is contained in:
5
index.js
5
index.js
@ -202,7 +202,8 @@ export const executeEvent2 = async (result) => {
|
||||
|
||||
// 检查是否有模型更换事件
|
||||
const hasModelChange = result.data.events.some(e => e.event_type === 'change_model');
|
||||
|
||||
const modelExists = await kernel.model.exists(modelId);
|
||||
console.log(modelExists);
|
||||
// 只有在需要更换模型时才清除
|
||||
if (hasModelChange) {
|
||||
kernel.dropZone.clearZones();
|
||||
@ -241,7 +242,7 @@ export const executeEvent2 = async (result) => {
|
||||
modelControlType: model_control_type,
|
||||
})
|
||||
|
||||
console.log(`百叶模型已放置为 ${name}`);
|
||||
console.log(`模型已放置为 ${name}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user