codeMan 2 years ago
parent
commit
83bddd017e
2 changed files with 5 additions and 3 deletions
  1. 3 1
      src/SDrpManagement/ProductGroup/modules/Select.vue
  2. 2 2
      vue.config.js

+ 3 - 1
src/SDrpManagement/ProductGroup/modules/Select.vue

@@ -108,7 +108,9 @@ export default {
       }
       if (!this.sys_enterpriseid()) delete param.content.sys_enterpriseid
       const res = await this.$api.requested(param)
-      this.itemclass = res.data[0].ttemclass
+      console.log(res.data);
+      
+      this.itemclass = res.data.length ? res.data[0].ttemclass : []
     },
     clickBrand (id) {
       this.brand_act = id ? id : 0

+ 2 - 2
vue.config.js

@@ -14,8 +14,8 @@ module.exports = {
       port: 8000,
       proxy: {
         '/apis': {
-          target: 'http://61.164.207.46:8000',  // target host*/
-          // target: 'https://oms.idcgroup.com.cn:8079/',  // target host
+          // target: 'http://61.164.207.46:8000',  // target host*/
+          target: 'https://oms.idcgroup.com.cn:8079/',  // target host
           // target: 'localhost:8080',  // target host
           ws: true,  // proxy websockets 
           changeOrigin: true,  // needed for virtual hosted sites