ソースを参照

防止上一个接口调用失败异常

zhengkaixin 4 年 前
コミット
5773dd5575

+ 4 - 1
src/projects/business/views/Master/Health/WorkerReport.vue

@@ -449,7 +449,10 @@
 			},
 			submitReport() {
 
-
+                if(!this.student.id){
+                    mui.toast("页面加载失败!");
+                    return;
+                }
 
                 if (this.report.address=='定位中……'||this.report.address=='无法获取定位') {
                     mui.alert("定位失败,请点击<span class=\"mui-icon mui-icon-location\" style=\"color: #096DD9;font-size: 16px;\"></span>蓝色定位图标重新获取位置信息!");