src/view/index.vue
@@ -393,7 +393,7 @@ <el-button type="primary" @click="handleEdit">确 定</el-button> </span> </el-dialog> <notice ref="notice" /> <notice ref="notice" @goNoticeDetail="checkForUnreadData()" /> </div> </template> @@ -462,6 +462,7 @@ } this.getPower() this.timer&&clearInterval(this.timer); this.checkForUnreadData() this.timer = setInterval(()=>{ this.checkForUnreadData() },30000)