叶松
2023-11-30 3ba380d1f422a2852dee9d0d6cab1fe6333d05f0
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)
    },
    beforeDestroy() {
        // clearInterval(this.timer);
        // this.timer = null;
        clearInterval(this.timer);
        this.timer = null;
    },
    methods:{
        searchWorkInfos(){