From cabd78c2195ec973706f9d3fda9fb1344d3049f3 Mon Sep 17 00:00:00 2001 From: dhao2001 Date: Sat, 30 Apr 2022 16:45:00 +0800 Subject: [PATCH] Finish logic of View after detect result is returned. --- src/App.vue | 23 +++++++++++++++++++++-- src/components/DetectResult.vue | 25 ++++++++++++++++++------- src/components/ImageForm.vue | 2 +- 3 files changed, 40 insertions(+), 10 deletions(-) diff --git a/src/App.vue b/src/App.vue index 207880b..a10baad 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,13 +2,20 @@
-
+
+
diff --git a/src/components/ImageForm.vue b/src/components/ImageForm.vue index 5cca35a..ab601b6 100644 --- a/src/components/ImageForm.vue +++ b/src/components/ImageForm.vue @@ -55,7 +55,7 @@ export default { }; axios.post(this._uploadImgUrl(), formData, config).then((res) => { - console.log(res.status); + this.$emit("detect-responsed", res); }); }, },