소스 검색

Update index.html

Carey Wong 1 년 전
부모
커밋
b333669521
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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"
             }