feat(recipe detail page): [M] 修复 api 路径错误

[M] 修复 api 路径错误

Signed-off-by: Ching <loooching@gmail.com>
This commit is contained in:
Ching 2021-10-05 17:35:44 +08:00
parent 1fa790a185
commit 8a3a6358d2

View File

@ -33,6 +33,8 @@ import 'element-plus/dist/index.css';
import router from '@/router/index';
import input_recipe from '@/components/input_recipe.vue';
import constants from '@/utils/constants.js';
import config from '@/config/index';
export default {
name: 'RecipeDetail',
components: { input_recipe },
@ -44,7 +46,7 @@ export default {
},
mounted() {
axios
.get('//localhost:8000/recipe/recipe/' + this.$route.params.id)
.get(config.publicPath + '/recipe/recipe/' + this.$route.params.id)
.then((response) => (this.recipe = response.data));
},
methods: {