xiongzhu %!s(int64=4) %!d(string=hai) anos
pai
achega
a13c74ec08
Modificáronse 3 ficheiros con 2 adicións e 3 borrados
  1. 1 1
      .env.development
  2. 1 1
      src/plugins/http.js
  3. 0 1
      www/index.html

+ 1 - 1
.env.development

@@ -1 +1 @@
-VUE_APP_BASE_URL=http://test.jmrh.izouma.com
+VUE_APP_BASE_URL=http://ggfw.jxjmrh.gov.cn/

+ 1 - 1
src/plugins/http.js

@@ -115,7 +115,7 @@ export default {
                 }
                 return new Promise((resolve, reject) => {
                     axiosInstance
-                        .post(url, body, { withCredentials: true })
+                        .post(url, body, { withCredentials: true, headers: options.headers })
                         .then(res => {
                             resolve(res.data);
                         })

+ 0 - 1
www/index.html

@@ -14,7 +14,6 @@
   <link rel="manifest" href="manifest.json">
   <link rel="stylesheet" href="css/style.css">
   <meta name="theme-color" content="#31d53d">
-
   <!-- un-comment this code to enable service worker
   <script>
     if ('serviceWorker' in navigator) {