Explorar o código

Update index.html

Carey Wong hai 1 ano
pai
achega
b333669521
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      public/index.html

+ 1 - 3
public/index.html

@@ -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"
             }