From 57188ede8ed35286f7ad947baee2a1fdf611f0d3 Mon Sep 17 00:00:00 2001 From: Novembert Date: Mon, 3 Jan 2022 21:10:45 +0100 Subject: [PATCH] waiting for module cv2 --- pages/check.vue | 2 +- store/axios.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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' } }