Commit caad2124 authored by yyh's avatar yyh

代码优化

parent a0425096
......@@ -64,8 +64,8 @@ export default class ProofDetail extends Vue {
this.showBtn = true;
}
}
private beforeRouteLeave(to: Route, from: Route, next: () => void) {
if(!this.checkEdited) return next();
private beforeRouteLeave(to: Route, from: Route, next: (params?: any) => void) {
if (!this.checkEdited) { return next(); }
if ( this.name !== this.name2 || JSON.stringify(this.detail) !== this.detail2 ) {
this.$dialog.confirm({
title: '提示',
......
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