Update index.html

This commit is contained in:
Carey Wong 2023-12-08 14:45:30 +08:00 committed by GitHub
parent cd89b66d7f
commit b333669521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,8 +34,6 @@
<script>
const repo = 'https://github.com/CareyWang/MyUrls'
// const backend = 'http://example.com'
const backend = '.'
let app = new Vue({
el: "#app",
@ -73,7 +71,7 @@
let data = new FormData();
data.append("longUrl", btoa(this.longUrl));
data.append("shortKey", this.shortUrl.indexOf('http') < 0 ? this.shortUrl : '');
axios.post(backend + '/short', data, {
axios.post('/short', data, {
header: {
"Content-Type": "application/form-data; charset=utf-8"
}