Update index.html
This commit is contained in:
parent
cd89b66d7f
commit
b333669521
@ -34,8 +34,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
const repo = 'https://github.com/CareyWang/MyUrls'
|
const repo = 'https://github.com/CareyWang/MyUrls'
|
||||||
// const backend = 'http://example.com'
|
|
||||||
const backend = '.'
|
|
||||||
|
|
||||||
let app = new Vue({
|
let app = new Vue({
|
||||||
el: "#app",
|
el: "#app",
|
||||||
@ -73,7 +71,7 @@
|
|||||||
let data = new FormData();
|
let data = new FormData();
|
||||||
data.append("longUrl", btoa(this.longUrl));
|
data.append("longUrl", btoa(this.longUrl));
|
||||||
data.append("shortKey", this.shortUrl.indexOf('http') < 0 ? this.shortUrl : '');
|
data.append("shortKey", this.shortUrl.indexOf('http') < 0 ? this.shortUrl : '');
|
||||||
axios.post(backend + '/short', data, {
|
axios.post('/short', data, {
|
||||||
header: {
|
header: {
|
||||||
"Content-Type": "application/form-data; charset=utf-8"
|
"Content-Type": "application/form-data; charset=utf-8"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user