yuantianjiao 6 years ago
parent
commit
4f074b2455
2 changed files with 5 additions and 3 deletions
  1. 2
    1
      src/util/api.js
  2. 3
    2
      vue.config.js

+ 2
- 1
src/util/api.js View File

1
-const baseUrl = '/api-v2'
1
+// const baseUrl = '/api-v2'
2
+const baseUrl = '/api'
2
 const wechat = '/wechat/:org'
3
 const wechat = '/wechat/:org'
3
 const guest = '/guest/:org'
4
 const guest = '/guest/:org'
4
 const common = '/common/:org'
5
 const common = '/common/:org'

+ 3
- 2
vue.config.js View File

20
   productionSourceMap: true,
20
   productionSourceMap: true,
21
   chainWebpack: config => config.plugins.delete('named-chunks'),
21
   chainWebpack: config => config.plugins.delete('named-chunks'),
22
   devServer: {
22
   devServer: {
23
-    publicPath: '/c-v2/',
23
+    // publicPath: '/c-v2/',
24
     proxy: {
24
     proxy: {
25
-      '/api-v2': {
25
+      // '/api-v2': {
26
+      '/api': {
26
         // target: 'https://dp.huiju360.com.cn/hj_operations',
27
         // target: 'https://dp.huiju360.com.cn/hj_operations',
27
         // target: 'http://192.168.0.62:8080', //wf
28
         // target: 'http://192.168.0.62:8080', //wf
28
         target: 'http://192.168.0.11:8080', //ys
29
         target: 'http://192.168.0.11:8080', //ys