|
|
@@ -32,21 +32,20 @@
|
|
|
counts () {
|
|
|
return this.$store.state.product.common.counts
|
|
|
}
|
|
|
+ },
|
|
|
+ mounted () {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ // 刷新统计信息
|
|
|
+ setInterval(() => {
|
|
|
+ this.loadCounts()
|
|
|
+ }, 30000)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ loadCounts () {
|
|
|
+ this.$store.dispatch('loadProductCounts', { _status: 'actived' })
|
|
|
+ }
|
|
|
}
|
|
|
-// mounted () {
|
|
|
-// this.$nextTick(() => {
|
|
|
-// this.loadCounts()
|
|
|
-// // 刷新统计信息
|
|
|
-// setInterval(() => {
|
|
|
-// this.loadCounts()
|
|
|
-// }, 30000)
|
|
|
-// })
|
|
|
-// },
|
|
|
-// methods: {
|
|
|
-// loadCounts () {
|
|
|
-// this.$store.dispatch('loadProductCounts', { _status: 'actived' })
|
|
|
-// }
|
|
|
-// }
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|