新版式
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.age {
|
||||
width: vw(240);
|
||||
width: vw(260);
|
||||
height: vh(800);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -193,7 +193,11 @@ import pubSub from 'pubsub-js'
|
||||
const carBearXAxisData = computed(() => {
|
||||
return scenicStore.stopCarData.dataList.map((item) => item.name)
|
||||
})
|
||||
|
||||
const carTotal = computed(() => {
|
||||
return dataLists.value.reduce((pre, cur) => {
|
||||
return pre + parseInt(cur.count)
|
||||
}, 0)
|
||||
})
|
||||
const garageList = computed(() => {
|
||||
return scenicStore.stopCarData.headList
|
||||
})
|
||||
@@ -202,7 +206,7 @@ import pubSub from 'pubsub-js'
|
||||
watch(
|
||||
() => scenicStore.stopCarData.dataLists,
|
||||
(val) => {
|
||||
// console.log(val.length, 'watch 监听')
|
||||
console.log(val.length, 'dataListsdataListsdataLists')
|
||||
if (val.length) {
|
||||
dataLists.value = val
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user