Skip to content

Commit

Permalink
fix: 内容创作页延时函数不执行修复
Browse files Browse the repository at this point in the history
  • Loading branch information
Liusiyuan-git committed Jan 15, 2023
1 parent 87046a7 commit 0142f54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/pages/article/write.vue
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ function getDataEdit() {
onMounted(() => {
body = document.body
body.style.backgroundColor = "var(--el-color-white)"
setTimeout(init, 1000)
setTimeout(function (){
init()
}, 1000)
})
</script>
Expand Down
4 changes: 3 additions & 1 deletion src/pages/talk/write.vue
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ onBeforeUnmount(() => {
})
onBeforeMount(() => {
setTimeout(init, 1000)
setTimeout(function (){
init()
}, 1000)
})
</script>
Expand Down

0 comments on commit 0142f54

Please sign in to comment.