权限页面优化

This commit is contained in:
Pan
2017-05-15 18:42:25 +08:00
parent 5aa22731c8
commit 0476f25eba
3 changed files with 10 additions and 9 deletions

View File

@@ -39,7 +39,11 @@
},
methods: {
back() {
this.$router.go(-1)
if (this.$route.query.noGoBack) {
this.$router.push({ path: '/dashboard' });
} else {
this.$router.go(-1);
}
}
}
};