From d7fc23d78ef6a78a2c1145d74894f97294d8496a Mon Sep 17 00:00:00 2001 From: chenghongxing <1126263215@qq.com> Date: Tue, 21 Jul 2020 12:40:46 +0800 Subject: [PATCH] chore: optimize the code of workplace; :star2: --- src/pages/dashboard/workplace/WorkPlace.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)