Przeglądaj źródła

注册完跳转

wgl 4 lat temu
rodzic
commit
7af7f05047

+ 4 - 2
src/projects/home/views/Register/Business/Step4.vue

@@ -202,8 +202,10 @@
 					API_Person.register(this.subForm).then(response => {
 						this.isLoading = false;
 
-						//跳转到项目主页上去
-						window.location.href = '../business/#/master';
+						mui.toast('提交成功,等待审核中');
+						this.$router.push({
+							name: 'UserLogin'
+						})
 
 					}).catch(error => {
 						this.isLoading = false;

+ 4 - 2
src/projects/home/views/Register/Pension/Step4.vue

@@ -210,8 +210,10 @@
 					API_Person.register(this.subForm).then(response => {
 						this.isLoading = false;
 
-						//跳转到项目主页上去
-						window.location.href = '../business/#/master';
+						mui.toast('提交成功,等待审核中');
+						this.$router.push({
+							name: 'UserLogin'
+						})
 
 					}).catch(error => {
 						this.isLoading = false;

+ 4 - 2
src/projects/home/views/Register/Residence/Step4.vue

@@ -197,8 +197,10 @@
 					API_Person.register(this.subForm).then(response => {
 						this.isLoading = false;
 
-						//跳转到项目主页上去
-						window.location.href = '../business/#/master';
+						mui.toast('提交成功,等待审核中');
+						this.$router.push({
+							name: 'UserLogin'
+						})
 
 					}).catch(error => {
 						this.isLoading = false;

+ 1 - 1
src/projects/home/views/User/Login.vue

@@ -55,7 +55,7 @@
 	} from '$project/utils'
 	import * as types from '$project/store/mutation-types'
 	export default {
-		name: 'Home',
+		name: 'UserLogin',
 		components: {
 			Common,
 			Loading,