fix(web): chat variable bugfix

This commit is contained in:
zhaoying
2026-01-14 20:03:15 +08:00
parent 58d82df327
commit d2eb10123b
4 changed files with 28 additions and 26 deletions

View File

@@ -40,7 +40,7 @@ const Chat = forwardRef<ChatRef, { appId: string; graphRef: GraphRef }>(({ appId
const curVariables = startNodes[0].config.variables?.defaultValue
curVariables.forEach((vo: StartVariableItem) => {
if (vo.default) {
if (typeof vo.default !== 'undefined') {
vo.value = vo.default
}
const lastVo = variables.find(item => item.name === vo.name)