列表刷新
This commit is contained in:
		@@ -174,9 +174,12 @@ export default {
 | 
			
		||||
            })
 | 
			
		||||
            .then((res) => {
 | 
			
		||||
              if (res.code == 0) {
 | 
			
		||||
                this.$u.toast('发布成功')
 | 
			
		||||
                this.flag = false
 | 
			
		||||
                uni.navigateTo({ url: `./AppResidentActivities` })
 | 
			
		||||
                this.$u.toast('提交成功')
 | 
			
		||||
                  uni.$emit('updateList')
 | 
			
		||||
                  setTimeout(() => {
 | 
			
		||||
                    uni.navigateBack()
 | 
			
		||||
                }, 600)
 | 
			
		||||
              }
 | 
			
		||||
            })
 | 
			
		||||
        } else {
 | 
			
		||||
 
 | 
			
		||||
@@ -79,6 +79,10 @@ export default {
 | 
			
		||||
    this.$dict.load(['villageActivityStatus']).then(() => {
 | 
			
		||||
      this.getList()
 | 
			
		||||
    })
 | 
			
		||||
    uni.$on('updateList', () => {
 | 
			
		||||
      this.current = 1
 | 
			
		||||
      this.getList()
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  mounted() {},
 | 
			
		||||
  methods: {
 | 
			
		||||
 
 | 
			
		||||
@@ -101,9 +101,12 @@ export default {
 | 
			
		||||
            })
 | 
			
		||||
            .then((res) => {
 | 
			
		||||
              if (res.code == 0) {
 | 
			
		||||
                this.$u.toast('发布成功')
 | 
			
		||||
                this.flag = false
 | 
			
		||||
                uni.navigateTo({ url: `./AppUniMsg` })
 | 
			
		||||
                this.$u.toast('提交成功')
 | 
			
		||||
                  uni.$emit('updateList')
 | 
			
		||||
                  setTimeout(() => {
 | 
			
		||||
                    uni.navigateBack()
 | 
			
		||||
                }, 600)
 | 
			
		||||
              }
 | 
			
		||||
            })
 | 
			
		||||
        } else {
 | 
			
		||||
 
 | 
			
		||||
@@ -80,6 +80,10 @@ export default {
 | 
			
		||||
  onLoad() {
 | 
			
		||||
    uni.setNavigationBarTitle({ title: '小程序公告' })
 | 
			
		||||
    this.getList()
 | 
			
		||||
    uni.$on('updateList', () => {
 | 
			
		||||
      this.current = 1
 | 
			
		||||
      this.getList()
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  onShow() {},
 | 
			
		||||
  methods: {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user