fix: key AppSheet render branches and self-heal never-mounted component vnodes
ci / gitleaks (push) Successful in 8s
ci / docker (push) Successful in 6m50s

This commit is contained in:
2026-09-23 11:12:43 +08:00
parent 2239cd4754
commit a64b7b8262
4 changed files with 39 additions and 6 deletions
+1 -1
View File
@@ -1532,7 +1532,7 @@ describe('desktop task and habit detail disclosure', () => {
expect(mvpPanel).toContain('if (busy.value && !force) return')
expect(mvpPanel).toContain(':modal="compactLayout"')
expect(mvpPanel).toContain('inline-target=".shell"')
expect(appSheet).toContain('<Teleport v-else-if="inlineTarget" :to="inlineTarget">')
expect(appSheet).toContain(`<Teleport v-else-if="inlineTarget" :key="'app-sheet-inline'" :to="inlineTarget">`)
expect(mvpPanel).toContain("watch(selectedHabit, (habit) => emit('detail', Boolean(habit)))")
expect(app).toContain('@click="closeTaskDetail"')
expect(app).toContain('function closeTaskDetail()')