|
|
@@ -84,7 +84,6 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
storeType () {
|
|
|
- console.log(this.$route.params.type, '1111')
|
|
|
return this.$route.params.type
|
|
|
},
|
|
|
store () {
|
|
|
@@ -98,14 +97,16 @@ export default {
|
|
|
},
|
|
|
count () {
|
|
|
let allCount = this.$store.state.option.counter.data ? this.$store.state.option.counter.data : []
|
|
|
- allCount.forEach((value) => {
|
|
|
- if (value.item === '供应商') {
|
|
|
- this.supplierArr.push(value.count)
|
|
|
- }
|
|
|
- if (value.item === '品 牌') {
|
|
|
- this.brandArr.push(value.count)
|
|
|
- }
|
|
|
- })
|
|
|
+ if (allCount) {
|
|
|
+ allCount.forEach((value) => {
|
|
|
+ if (value.item === '供应商') {
|
|
|
+ this.supplierArr.push(value.count)
|
|
|
+ }
|
|
|
+ if (value.item === '品 牌') {
|
|
|
+ this.brandArr.push(value.count)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|