|
@ -434,10 +434,11 @@ export default { |
|
|
|
|
|
|
|
|
this.loading = true; |
|
|
this.loading = true; |
|
|
|
|
|
|
|
|
|
|
|
let data = new FormData(); |
|
|
|
|
|
data.append("longUrl", btoa(this.customSubUrl)); |
|
|
|
|
|
|
|
|
this.$axios |
|
|
this.$axios |
|
|
.post(shortUrlBackend, { |
|
|
.post(shortUrlBackend, data) |
|
|
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; |
|
|