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,4 +1,5 @@
1
-const baseUrl = '/api-v2'
1
+// const baseUrl = '/api-v2'
2
+const baseUrl = '/api'
2 3
 const wechat = '/wechat/:org'
3 4
 const guest = '/guest/:org'
4 5
 const common = '/common/:org'

+ 3
- 2
vue.config.js View File

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