李志伟 3 лет назад
Родитель
Сommit
f3a1363264
2 измененных файлов: 2 добавлений и 2 удалений
  1. 1
    1
      .env
  2. 1
    1
      src/utils/request.js

+ 1
- 1
.env Просмотреть файл

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

+ 1
- 1
src/utils/request.js Просмотреть файл

8
 
8
 
9
   Object.keys(options.headers || {}).forEach(key => headers.append(key, options.headers[key]))
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: 'include'  })
12
     .then(response => response.json())
12
     .then(response => response.json())
13
     .then(data => {
13
     .then(data => {
14
       if (data.code === 1000) return data.data
14
       if (data.code === 1000) return data.data