chore: optimize the code of workplace; 🌟

master
chenghongxing 4 years ago
parent 21cfb454d7
commit d7fc23d78e
  1. 2
      src/pages/dashboard/workplace/WorkPlace.vue

@ -105,7 +105,7 @@ export default {
...mapState('account', {currUser: 'user'}), ...mapState('account', {currUser: 'user'}),
...mapState('setting', ['lang']) ...mapState('setting', ['lang'])
}, },
beforeCreate() { created() {
request('/user/welcome', METHOD.GET).then(res => this.welcome = res.data) request('/user/welcome', METHOD.GET).then(res => this.welcome = res.data)
request('/work/activity', METHOD.GET).then(res => this.activities = res.data) request('/work/activity', METHOD.GET).then(res => this.activities = res.data)
request('/work/team', METHOD.GET).then(res => this.teams = res.data) request('/work/team', METHOD.GET).then(res => this.teams = res.data)

Loading…
Cancel
Save