From 39bb506b53432bb722ad1a4c9dce4a00276bb602 Mon Sep 17 00:00:00 2001 From: CareyWong Date: Mon, 9 Mar 2020 01:08:48 +0800 Subject: [PATCH] Fix: short url request header --- src/views/Subconverter.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/Subconverter.vue b/src/views/Subconverter.vue index ea21dae..d62e234 100644 --- a/src/views/Subconverter.vue +++ b/src/views/Subconverter.vue @@ -438,7 +438,11 @@ export default { data.append("longUrl", btoa(this.customSubUrl)); this.$axios - .post(shortUrlBackend, data) + .post(shortUrlBackend, data, { + header: { + "Content-Type": "application/form-data; charset=utf-8" + } + }) .then(res => { if (res.data.Code === 1 && res.data.ShortUrl !== "") { this.curtomShortSubUrl = res.data.ShortUrl;