diff options
| author | Kana <[email protected]> | 2021-01-21 00:51:43 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-21 00:51:43 +0900 |
| commit | e779706ab7bf0ae9f41864ed4ecd34da24fc003e (patch) | |
| tree | 2b7646a6d18e3d99d55f5ead102a82870e21f54a /src/site/pages/dashboard/account.vue | |
| parent | chore: remove console logs (diff) | |
| parent | feat: prevent embeds being nsfw (diff) | |
| download | host.fuwn.me-e779706ab7bf0ae9f41864ed4ecd34da24fc003e.tar.xz host.fuwn.me-e779706ab7bf0ae9f41864ed4ecd34da24fc003e.zip | |
Merge pull request #254 from WeebDev/feature/ssr
Feature/ssr
Diffstat (limited to 'src/site/pages/dashboard/account.vue')
| -rw-r--r-- | src/site/pages/dashboard/account.vue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/site/pages/dashboard/account.vue b/src/site/pages/dashboard/account.vue index 05b969b..5d5d775 100644 --- a/src/site/pages/dashboard/account.vue +++ b/src/site/pages/dashboard/account.vue @@ -104,9 +104,7 @@ export default { components: { Sidebar }, - middleware: ['auth', ({ store }) => { - store.dispatch('auth/fetchCurrentUser'); - }], + middleware: ['auth'], data() { return { password: '', @@ -120,6 +118,9 @@ export default { user: state => state.auth.user }) }, + async asyncData({ app }) { + await app.store.dispatch('auth/fetchCurrentUser'); + }, methods: { ...mapActions({ getUserSetttings: 'auth/fetchCurrentUser' |