aboutsummaryrefslogtreecommitdiff
path: root/src/site
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-02-22 00:12:51 +0900
committerPitu <[email protected]>2019-02-22 00:12:51 +0900
commit84c4b442cf69f20730119fb4f68046b7d537bca8 (patch)
tree276f41789842f2aac6445575f9f964a39c5636e2 /src/site
parentAdd support for sqlite (diff)
downloadhost.fuwn.me-84c4b442cf69f20730119fb4f68046b7d537bca8.tar.xz
host.fuwn.me-84c4b442cf69f20730119fb4f68046b7d537bca8.zip
whoops
Diffstat (limited to 'src/site')
-rw-r--r--src/site/pages/a/_identifier.vue7
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,