李志伟 3 anos atrás
pai
commit
32d7711ce3
4 arquivos alterados com 5 adições e 5 exclusões
  1. 1
    1
      .env
  2. 1
    1
      index.html
  3. 2
    2
      src/services/org.js
  4. 1
    1
      src/utils/request.js

+ 1
- 1
.env Ver arquivo

@@ -1,2 +1,2 @@
1 1
 # 通用配置
2
-VITE_SERVER_BASE=http://resumework-service.njyunzhi.com
2
+VITE_SERVER_BASE=

+ 1
- 1
index.html Ver arquivo

@@ -3,7 +3,7 @@
3 3
   <head>
4 4
     <meta charset="UTF-8" />
5 5
     <link rel="icon" href="/favicon.ico" />
6
-    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no" />
7 7
     <title>复工复产申报</title>
8 8
   </head>
9 9
   <body>

+ 2
- 2
src/services/org.js Ver arquivo

@@ -5,7 +5,7 @@ import request,{ baseURL } from "../utils/request";
5 5
  * @param {*} person 
6 6
  * @returns 
7 7
  */
8
- export function getOrgList() {
8
+ export function getOrgList(params) {
9 9
   const url = `${baseURL}/org`
10
-  return request(url)
10
+  return request(url,params)
11 11
 }

+ 1
- 1
src/utils/request.js Ver arquivo

@@ -8,7 +8,7 @@ export default function request (url, options = {}) {
8 8
 
9 9
   Object.keys(options.headers || {}).forEach(key => headers.append(key, options.headers[key]))
10 10
 
11
-  return fetch(url, { ...options, headers, credentials: 'include'  })
11
+  return fetch(url, { ...options, headers, credentials: 'same-origin' })
12 12
     .then(response => response.json())
13 13
     .then(data => {
14 14
       if (data.code === 1000) return data.data