Fix occasion of mounted event of plugins system

This commit is contained in:
Pig Fang 2019-07-02 10:59:21 +08:00
parent 83247087cb
commit f1232724df
3 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,7 @@ function loadModules() {
new Vue({
el: route.el,
mounted() {
setTimeout(() => emitter.emit('mounted', { el: route.el }), 100)
this.$nextTick(() => emitter.emit('mounted', { el: route.el }))
},
render: h => h(route.component),
})

View File

@ -15,3 +15,4 @@
- Fixed that possible duplicated signings.
- Fixed that OAuth tables not created at installation.
- Fixed occasion of `mounted` event of plugins system.

View File

@ -15,3 +15,4 @@
- 修复可能存在的重复签到问题
- 修复安装皮肤站时未创建 OAuth 相关数据表的问题
- 修复插件系统中前端 `mounted` 事件的时机问题