浏览代码

跳转后不刷新问题

zhengkaixin 3 年之前
父节点
当前提交
b3c31e8f88

+ 3 - 1
src/projects/business/views/Master/Attendance/Apply.vue

@@ -234,7 +234,9 @@
 						this.isLoading = false;
 
 						mui.toast('提交成功');
-						this.$router.go(-1);
+						this.$router.push({
+							name:"MasterAttendanceList"
+						});
 					}).catch(error => {
 						this.isLoading = false;
 						mui.toast(error);

+ 1 - 1
src/projects/business/views/Master/Attendance/List.vue

@@ -1,7 +1,7 @@
 <template>
 	<div>
 		<common @asynCallBack="asynCallBack"></common>
-		<top-header :pageTitle="pageTitle" :rightLink="rightLink" :doRightLink="doRightLink"></top-header>
+		<top-header :pageTitle="pageTitle" :rightLink="rightLink" routeName="Master" :doRightLink="doRightLink"></top-header>
 
 		<div class="mui-content">
 			<div class="mui-content-padded vongi-work">