123456789101112131415161718192021222324252627282930 |
- import { mapState } from 'vuex';
- export default {
- data() {
- return {
- loadding: true,
- }
- },
- computed: {
- //全局社区
- ...mapState(['homeCommunityAll']),
- resize() {
- // 通过scale值来判断窗口是变化
- return this.$store.getters['getScale'];
- }
- },
- watch: {
- //全局社区接口调用
- 'homeCommunityAll'(n) {
- this.mixins_query.communityId = n;
- this.getData();
- }
- },
- methods: {
- },
- created() {
- this.mixins_query.communityId = this.homeCommunityAll;
- this.getData();
- }
- }
|