#
whycq
2024-11-22 6741811c83a4b628e59d5d90a45ce407046f1139
#
2个文件已修改
30 ■■■■ 已修改文件
Monitor-APP/manifest.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/pages/home/home.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/manifest.json
@@ -2,8 +2,8 @@
    "name" : "Monitor-APP",
    "appid" : "__UNI__CA903B7",
    "description" : "",
    "versionName" : "1.0.1",
    "versionCode" : "100",
    "versionName" : "1.0.2",
    "versionCode" : 101,
    "transformPx" : false,
    "networkTimeout" : {
        "request" : 30000
Monitor-APP/pages/home/home.vue
@@ -442,20 +442,20 @@
                
            },1000*60*60*4)
            
            setInterval(()=> {
                setTimeout(()=>{
                    var time = new Date();
                    var hh = time.getHours();
                    var mm = time.getMinutes();
                    if(hh > this.oldHours && mm >this.oldMin && this.oldMin - mm < 55){
                        plus.runtime.restart();
                    }
                    if(mm >this.oldMin && mm - this.oldMin >2){
                        plus.runtime.restart();
                    }
                },100)
            // setInterval(()=> {
            //     setTimeout(()=>{
            //         var time = new Date();
            //         var hh = time.getHours();
            //         var mm = time.getMinutes();
            //         if(hh > this.oldHours && mm >this.oldMin && this.oldMin - mm < 55){
            //             plus.runtime.restart();
            //         }
            //         if(mm >this.oldMin && mm - this.oldMin >2){
            //             plus.runtime.restart();
            //         }
            //     },100)
                
            },1000*30)
            // },1000*30)
        },
        created() {
            let that = this