diff options
| author | Pitu <[email protected]> | 2019-02-22 00:12:51 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2019-02-22 00:12:51 +0900 |
| commit | 84c4b442cf69f20730119fb4f68046b7d537bca8 (patch) | |
| tree | 276f41789842f2aac6445575f9f964a39c5636e2 /src/site | |
| parent | Add support for sqlite (diff) | |
| download | host.fuwn.me-84c4b442cf69f20730119fb4f68046b7d537bca8.tar.xz host.fuwn.me-84c4b442cf69f20730119fb4f68046b7d537bca8.zip | |
whoops
Diffstat (limited to 'src/site')
| -rw-r--r-- | src/site/pages/a/_identifier.vue | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/site/pages/a/_identifier.vue b/src/site/pages/a/_identifier.vue index b01200c..254ed36 100644 --- a/src/site/pages/a/_identifier.vue +++ b/src/site/pages/a/_identifier.vue @@ -52,14 +52,13 @@ import Grid from '~/components/grid/Grid.vue'; import Loading from '~/components/loading/CubeShadow.vue'; import axios from 'axios'; -import config from '~/config.js'; export default { components: { Grid, Loading }, - async asyncData({ params, error }) { + async asyncData({ app, params, error }) { try { - const res = await axios.get(`${config.baseURL}/album/${params.identifier}`); - const downloadLink = res.data.downloadEnabled ? `${config.baseURL}/album/${params.identifier}/zip` : null; + const res = await axios.get(`${app.store.state.config.baseURL}/album/${params.identifier}`); + const downloadLink = res.data.downloadEnabled ? `${app.store.state.config.baseURL}/album/${params.identifier}/zip` : null; return { name: res.data.name, downloadEnabled: res.data.downloadEnabled, |