Browse Source

Fix: short request method

develop
CareyWong 5 years ago
parent
commit
0de3ae5137
  1. 4
      src/views/Subconverter.vue

4
src/views/Subconverter.vue

@ -435,7 +435,9 @@ export default {
this.loading = true; this.loading = true;
this.$axios this.$axios
.get(shortUrlBackend + "?longUrl=" + btoa(this.customSubUrl)) .post(shortUrlBackend, {
longUrl: btoa(this.customSubUrl)
})
.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