张晓波
2023-12-12 766effa6e04db9b37b1dc3886d988beaa595c38d
web/src/views/MixingInfo/workShop.vue
@@ -63,14 +63,14 @@
        this.searchWorkInfos()
    },
    mounted(){
        // const that = this;
        // that.timer = setInterval(()=>{
        //     that.searchWorkInfos()
        // },300000)
        const that = this;
        that.timer = setInterval(()=>{
            that.searchWorkInfos()
        },60000 * 10)
    },
    beforeDestroy() {
        // clearInterval(this.timer);
        // this.timer = null;
        clearInterval(this.timer);
        this.timer = null;
    },
    methods:{
        searchWorkInfos(){