Browse Source

sz version

Your Name 6 years ago
commit
cab142d2c1
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/views/goodsManager/GoodsType.vue
  2. 2
    2
      vue.config.js

+ 1
- 1
src/views/goodsManager/GoodsType.vue View File

151
       const newData = !this.typeDetail.typeId
151
       const newData = !this.typeDetail.typeId
152
       const api = newData ? this.saveGoodType : this.updateGoodType
152
       const api = newData ? this.saveGoodType : this.updateGoodType
153
 
153
 
154
-      api(this.typeDetail).then((data) => {
154
+      api(this.typeDetail).then(() => {
155
         // if (newData) {
155
         // if (newData) {
156
         //   this.currentList = this.currentList.concat(data)
156
         //   this.currentList = this.currentList.concat(data)
157
         // } else {
157
         // } else {

+ 2
- 2
vue.config.js View File

3
   devServer: {
3
   devServer: {
4
     proxy: {
4
     proxy: {
5
       '/api': {
5
       '/api': {
6
-        target: 'http://192.168.0.11:8080',
6
+        target: 'http://127.0.0.1:8080',
7
         changeOrigin: true,
7
         changeOrigin: true,
8
         pathRewrite: {
8
         pathRewrite: {
9
           '^/api': '/'
9
           '^/api': '/'
10
         },
10
         },
11
       },
11
       },
12
       '/api/websocket': {
12
       '/api/websocket': {
13
-        target: 'http://192.168.0.11:8080',
13
+        target: 'http://127.0.0.1:8080',
14
         changeOrigin: true,
14
         changeOrigin: true,
15
         ws: true,
15
         ws: true,
16
         pathRewrite: {
16
         pathRewrite: {