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

[M] 修复 api 路径错误

Signed-off-by: Ching <loooching@gmail.com>
This commit is contained in:
Ching 2021-10-05 16:48:17 +08:00
parent d2d6af2cca
commit b95c7e6696

View File

@ -49,6 +49,7 @@
<script> <script>
import axios from 'axios'; import axios from 'axios';
import config from '@/config/index';
export default { export default {
name: 'DailyRecipeDetail', name: 'DailyRecipeDetail',
data: function() { data: function() {
@ -60,7 +61,7 @@ export default {
}, },
mounted() { mounted() {
axios axios
.get('//localhost:8000/recipe/daily-recipe/' + this.$route.params.id) .get(config.publicPath + '/recipe/daily-recipe/' + this.$route.params.id)
.then((response) => { .then((response) => {
var data = { var data = {
meat: [], meat: [],