张梦琪 1 year ago
parent
commit
24f1ea26f2
3 changed files with 22 additions and 17 deletions
  1. 1 0
      .env.development
  2. 1 1
      .env.production
  3. 20 16
      index.html

+ 1 - 0
.env.development

@@ -3,4 +3,5 @@ ENV = 'development'
 
 # 本地环境接口地址
 VITE_API_URL = 'http://localhost:8000'
+# VITE_API_URL = 'http://dtadminapi.zhongjie51.com'
 # VITE_API_URL = 'http://dtadmin.zhongjie51.com'

+ 1 - 1
.env.production

@@ -9,4 +9,4 @@ VITE_PUBLIC_PATH = '/'
 
 # 线上环境接口地址
 # VITE_API_URL = 'https://admin.zhontai.net'
-VITE_API_URL = 'http://dtadmin.zhongjie51.com'
+VITE_API_URL = 'https://dtadminapi.zhongjie51.com'

+ 20 - 16
index.html

@@ -1,17 +1,19 @@
 <!DOCTYPE html>
 <html lang="zh-CN">
-  <head>
-    <meta charset="utf-8" />
-    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
-    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="keywords" content="中台Admin" />
-    <meta name="description" content="中台Admin" />
-    <link rel="icon" href="/favicon.ico" />
-    <title>中台Admin</title>
-  </head>
-  <body>
-    <div id="app"></div>
-    <!-- <script type="text/javascript">
+
+<head>
+  <meta charset="utf-8" />
+  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+  <meta name="keywords" content="地推管理系统" />
+  <meta name="description" content="地推管理系统" />
+  <link rel="icon" href="/favicon.ico" />
+  <title>地推管理系统</title>
+</head>
+
+<body>
+  <div id="app"></div>
+  <!-- <script type="text/javascript">
       var _hmt = _hmt || []
       ;(function () {
         var hm = document.createElement('script')
@@ -20,7 +22,9 @@
         s.parentNode.insertBefore(hm, s)
       })()
     </script> -->
-    <script type="module" src="/src/main.ts"></script>
-    <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=wsijQt8sLXrCW71YesmispvYHitfG9gv&s=1"></script>
-  </body>
-</html>
+  <script type="module" src="/src/main.ts"></script>
+  <script type="text/javascript"
+    src="https://api.map.baidu.com/api?v=3.0&ak=wsijQt8sLXrCW71YesmispvYHitfG9gv&s=1"></script>
+</body>
+
+</html>