Skip to content

Commit 9cb1554

Browse files
committed
更新[box.switcher.js]: 修复部分情况切换会话不成功问题
1 parent 3b37da7 commit 9cb1554

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎box/switcher/box.switcher.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function execSwitch() {
4040
const isNewRound = curSessionIdx + 1 === app.sessions.length
4141
const nextSessionIdx = isNewRound ? 0 : curSessionIdx + 1
4242
const nextSession = app.sessions[nextSessionIdx]
43-
nextSession.datas.forEach((_data) => $.setdata(_data.val, _data.key) || true)
43+
nextSession.datas.forEach((_data) => $.setdata([undefined, null, 'undefined', 'null', ''].includes(_data.val) ? '' : _data.val, _data.key))
4444
curSessions[appId] = nextSession.id
4545
$.desc.push(`${curSession.appName}: ${curSession.name} => #${nextSessionIdx + 1} ${nextSession.name} ${isNewRound ? '(新一轮)' : ''}`)
4646
})

0 commit comments

Comments
 (0)