diff --git a/pages/check.vue b/pages/check.vue index 6b9b26e..f62be07 100644 --- a/pages/check.vue +++ b/pages/check.vue @@ -32,7 +32,7 @@ export default { }, async checkPhoto (photo) { const formData = new FormData() - formData.append('file', photo.file) + formData.append('image', photo.file) const res = await this.$store.dispatch('axios/file', ['/image/check', formData]) return res diff --git a/store/axios.js b/store/axios.js index bb97891..cbe59c0 100644 --- a/store/axios.js +++ b/store/axios.js @@ -2,7 +2,7 @@ import axios from 'axios' export const state = () => { return { - url: 'https://161.35.216.122' + url: 'http://161.35.216.122/api' } }