Commit 8e8d4545 by niuxiaolin

latest

parent 3b7b58a0
......@@ -34,7 +34,8 @@ export class CheckAddComponent implements OnInit {
private fb: FormBuilder,
private route: Router,
private gaoDeLocation: GaoDeLocation,
private _toast: ToastService
private _toast: ToastService,
private router2: Router
) {
this.getCurrentPosition();
}
......@@ -213,6 +214,8 @@ export class CheckAddComponent implements OnInit {
this.api.addCheckPlan(result).subscribe(data => {
if (!data.success) {
this.msg = data.msg.replace(/\w+:/g, "*");
}else{
this.router2.navigate(["/"]);
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment