src/views/login/index.vue
@@ -89,6 +89,8 @@ code: code, }).then((res) => { localStorage.setItem("user", JSON.stringify(res)); localStorage.setItem("staffs", JSON.stringify(res.staffs)); localStorage.setItem("selectStaff", JSON.stringify(res.staffs[0])); this.$router.push("/student"); }); },