소스 검색

bug修复

chenrui 3 년 전
부모
커밋
a70642a338
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/productManagement/productInfo/edit.vue

+ 2 - 2
src/views/productManagement/productInfo/edit.vue

@@ -196,10 +196,10 @@ export default {
       this.fetching = true
       dealerProductBrandQuery({ 'sysFlag': '0', 'queryWord': value }).then(res => {
         if (res.status == 200) {
-          this.productBrandList = res.data
+          this.productBrandList = res.data || []
           this.fetching = false
         } else {
-          this.dealerData = []
+          this.productBrandList = []
           this.fetching = false
         }
       })