diff --git a/src/pages/Login.vue b/src/pages/Login.vue
index 3b040fd..b5dbd13 100644
--- a/src/pages/Login.vue
+++ b/src/pages/Login.vue
@@ -104,7 +104,7 @@
sessionStorage.setItem("userId", data.data.results.userId);
sessionStorage.setItem("roleCode", data.data.results.roleCode);
that.$router.push('/home');
- that.$Message.info("登陆成功");
+ that.$Message.success("登陆成功");
}else if(code === '0004'){
that.$Message.info("账号不存在");
}else if(code === '0003'){
diff --git a/src/pages/shop/IncreaseStaffManager.vue b/src/pages/shop/IncreaseStaffManager.vue
index 9b5e2a8..1c9c1b0 100644
--- a/src/pages/shop/IncreaseStaffManager.vue
+++ b/src/pages/shop/IncreaseStaffManager.vue
@@ -501,7 +501,8 @@ export default {
}
},
back: function() {
- this.$router.push({ path: "/shop/increase/manager" });
+ // this.$router.push({ path: "/shop/increase/manager" });
+ this.$router.back();
},
// 删除
remove: function(row) {
diff --git a/src/pages/user/AccountManagementModify.vue b/src/pages/user/AccountManagementModify.vue
index f05baa6..1115bba 100644
--- a/src/pages/user/AccountManagementModify.vue
+++ b/src/pages/user/AccountManagementModify.vue
@@ -133,7 +133,7 @@
>
@@ -293,15 +293,17 @@ import IncreaseData from "../../services/generalize/IncreaseData";
that.$Message.error("该账号已经被使用!");
} else if (data.results == 0) {
that.$Message.success("修改账号成功");
- that.$router.push({ path: "/account/manager" });
+ // that.$router.push({ path: "/account/manager" });
+ that.goBackPage();
}
}
});
});
},
//修改账号取消
- modifyAccountcancel: function() {
- this.$router.push({ path: "/account/manager" });
+ goBackPage: function() {
+ // this.$router.push({ path: "/account/manager" });
+ this.$router.back();
},
//角色改变
roleChange(roleBean) {
diff --git a/src/pages/user/AccountManagerAdd.vue b/src/pages/user/AccountManagerAdd.vue
index cad6e4f..91db6ab 100644
--- a/src/pages/user/AccountManagerAdd.vue
+++ b/src/pages/user/AccountManagerAdd.vue
@@ -134,7 +134,7 @@
>
@@ -294,15 +294,16 @@
that.$Message.error("该账号已经被使用!");
} else if (data.results == "0000") {
that.$Message.success("保存账号成功");
- that.$router.push({ path: "/account/manager" });
+ that.goBackPage();
}
}
});
});
},
// 添加账号取消
- addAccountCancel: function() {
- this.$router.push({ path: "/account/manager" });
+ goBackPage: function() {
+ // this.$router.push({ path: "/account/manager" });
+ this.$router.back();
},
//角色改变
roleChange(roleBean) {