瀏覽代碼

sz version

Your Name 6 年之前
當前提交
cab142d2c1
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. 1
    1
      src/views/goodsManager/GoodsType.vue
  2. 2
    2
      vue.config.js

+ 1
- 1
src/views/goodsManager/GoodsType.vue 查看文件

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

+ 2
- 2
vue.config.js 查看文件

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