@@ -275,7 +275,7 @@ const router = new VueRouter({
});
router.beforeEach((to, form, next) => {
store.commit('setUser');
- if (to.name === 'teaRegister') {
+ if (to.name === 'login') {
next();
return;
}
@@ -182,7 +182,6 @@ export default {
data.schname = this.schoolList.find(f => f.code === data.schid).name;
if (isNew) {
res = await this.create(data);
- data.password = '123456';
msg = `${this.keyWord}添加成功`;
} else {
res = await this.update(data);