From 84c4b442cf69f20730119fb4f68046b7d537bca8 Mon Sep 17 00:00:00 2001
From: Pitu <heyitspitu@gmail.com>
Date: Fri, 22 Feb 2019 00:12:51 +0900
Subject: whoops

---
 src/site/pages/a/_identifier.vue | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'src/site/pages/a/_identifier.vue')

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,
-- 
cgit v1.2.3

