|
@@ -101,9 +101,13 @@ export default {
|
|
|
},
|
|
|
loginSuccessCallBack(){
|
|
|
|
|
|
- if (this.$params.mode) {
|
|
|
+ if (this.$params.router) {
|
|
|
|
|
|
+ return this.$router.autoRouter(this.$params.router).then(()=>{
|
|
|
|
|
|
+ }).catch(()=>{
|
|
|
+ this.$router.switchTab('index');
|
|
|
+ });
|
|
|
|
|
|
} else {
|
|
|
return this.$router.navigateBack().then(()=>{
|
|
@@ -138,4 +142,4 @@ export default {
|
|
|
|
|
|
<style scoped lang="scss" src="./style.scss">
|
|
|
|
|
|
-</style>
|
|
|
+</style>
|