Browse Source

Fix: short url request header

develop
CareyWong 5 years ago
parent
commit
39bb506b53
  1. 6
      src/views/Subconverter.vue

6
src/views/Subconverter.vue

@ -438,7 +438,11 @@ export default {
data.append("longUrl", btoa(this.customSubUrl)); data.append("longUrl", btoa(this.customSubUrl));
this.$axios this.$axios
.post(shortUrlBackend, data) .post(shortUrlBackend, data, {
header: {
"Content-Type": "application/form-data; charset=utf-8"
}
})
.then(res => { .then(res => {
if (res.data.Code === 1 && res.data.ShortUrl !== "") { if (res.data.Code === 1 && res.data.ShortUrl !== "") {
this.curtomShortSubUrl = res.data.ShortUrl; this.curtomShortSubUrl = res.data.ShortUrl;

Loading…
Cancel
Save