fix(daily recipe detail page): [M] 修复 api 路径错误
[M] 修复 api 路径错误 Signed-off-by: Ching <loooching@gmail.com>
This commit is contained in:
parent
b95c7e6696
commit
acbb02f1bc
@ -83,11 +83,13 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
reGenerateRecipe() {
|
reGenerateRecipe() {
|
||||||
axios
|
axios
|
||||||
.post('//localhost:8000/recipe/daily-recipe/' + this.$route.params.id)
|
.post(
|
||||||
|
config.publicPath + '/recipe/daily-recipe/' + this.$route.params.id
|
||||||
|
)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
response;
|
response;
|
||||||
return axios.get(
|
return axios.get(
|
||||||
'//localhost:8000/recipe/daily-recipe/' + this.$route.params.id
|
config.publicPath + '/recipe/daily-recipe/' + this.$route.params.id
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user