Skip to content

Commit

Permalink
fix: textContent先设置
Browse files Browse the repository at this point in the history
  • Loading branch information
lb1129 committed Jul 10, 2023
1 parent 83a8139 commit 71970cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extra/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export const patch = () => {
div.classList.add(styleLess.text)
div.textContent = 'div content'
div.onclick = async () => {
div.textContent = 'div content clicked'
const module = await import('@/lazy/index')
module.default(div)
div.textContent = 'div content clicked'
}
document.body.appendChild(div)
}

0 comments on commit 71970cc

Please sign in to comment.