From acbb02f1bce8df820ae1ac7b842d3cb666bd9cb6 Mon Sep 17 00:00:00 2001 From: Ching Date: Tue, 5 Oct 2021 16:51:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(daily=20recipe=20detail=20page):=20[M]=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20api=20=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [M] 修复 api 路径错误 Signed-off-by: Ching --- frontend/src/components/daily_recipe_detail.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/daily_recipe_detail.vue b/frontend/src/components/daily_recipe_detail.vue index 7e60e26..249bdc5 100644 --- a/frontend/src/components/daily_recipe_detail.vue +++ b/frontend/src/components/daily_recipe_detail.vue @@ -83,11 +83,13 @@ export default { methods: { reGenerateRecipe() { axios - .post('//localhost:8000/recipe/daily-recipe/' + this.$route.params.id) + .post( + config.publicPath + '/recipe/daily-recipe/' + this.$route.params.id + ) .then((response) => { response; return axios.get( - '//localhost:8000/recipe/daily-recipe/' + this.$route.params.id + config.publicPath + '/recipe/daily-recipe/' + this.$route.params.id ); }) .then((response) => {