张延森 3 years ago
parent
commit
454143be9d
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      config/config.js
  2. 1
    0
      src/utils/request.js

+ 1
- 1
config/config.js View File

8
 
8
 
9
 export default defineConfig({
9
 export default defineConfig({
10
   define: {
10
   define: {
11
-    API_BASE: 'http://resumework-service.njyunzhi.com',
11
+    API_BASE: 'https://pet-certificate-online.njyunzhi.com',
12
   },
12
   },
13
   base: '/admin/',  // 路由跳转必须加 admin
13
   base: '/admin/',  // 路由跳转必须加 admin
14
   publicPath: './', // 静态文件相对路径
14
   publicPath: './', // 静态文件相对路径

+ 1
- 0
src/utils/request.js View File

30
     url: `${prefix}${url}`,
30
     url: `${prefix}${url}`,
31
     options: {
31
     options: {
32
       ...options,
32
       ...options,
33
+      // mode: 'same-origin', // no-cors, *cors, same-origin
33
       headers: {
34
       headers: {
34
         ...headers,
35
         ...headers,
35
         ...token,
36
         ...token,