Browse Source

pref: 优化请求路径

backend配置为. 便于部署后任意指定域名
Xw·C 1 year ago
parent
commit
5cb9c405b6
1 changed files with 3 additions and 2 deletions
  1. 3 2
      public/index.html

+ 3 - 2
public/index.html

@@ -34,7 +34,8 @@
 
   <script>
     const repo = 'https://github.com/CareyWang/MyUrls'
-    const backend = 'http://example.com'
+    // const backend = 'http://example.com'
+    const backend = '.'
 
     let app = new Vue({
       el: "#app",
@@ -152,4 +153,4 @@
   </style>
 </body>
 
-</html>
+</html>