diff --git a/src/pages/dashboard/workplace/WorkPlace.vue b/src/pages/dashboard/workplace/WorkPlace.vue index af7cb89..79d6346 100644 --- a/src/pages/dashboard/workplace/WorkPlace.vue +++ b/src/pages/dashboard/workplace/WorkPlace.vue @@ -105,7 +105,7 @@ export default { ...mapState('account', {currUser: 'user'}), ...mapState('setting', ['lang']) }, - beforeCreate() { + created() { request('/user/welcome', METHOD.GET).then(res => this.welcome = res.data) request('/work/activity', METHOD.GET).then(res => this.activities = res.data) request('/work/team', METHOD.GET).then(res => this.teams = res.data)