From 4a817af91e67864780dc3ae6f908996fd4c9a5be Mon Sep 17 00:00:00 2001 From: CareyWong Date: Mon, 9 Mar 2020 00:36:53 +0800 Subject: [PATCH] Fix --- src/views/Subconverter.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/Subconverter.vue b/src/views/Subconverter.vue index 7290a08..ea21dae 100644 --- a/src/views/Subconverter.vue +++ b/src/views/Subconverter.vue @@ -434,10 +434,11 @@ export default { this.loading = true; + let data = new FormData(); + data.append("longUrl", btoa(this.customSubUrl)); + this.$axios - .post(shortUrlBackend, { - longUrl: btoa(this.customSubUrl) - }) + .post(shortUrlBackend, data) .then(res => { if (res.data.Code === 1 && res.data.ShortUrl !== "") { this.curtomShortSubUrl = res.data.ShortUrl;