lrf402788946 %!s(int64=5) %!d(string=hai) anos
pai
achega
6b2e49b346
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  1. 1 1
      src/router/index.js
  2. 0 1
      src/views/teacher/detail.vue

+ 1 - 1
src/router/index.js

@@ -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;
   }

+ 0 - 1
src/views/teacher/detail.vue

@@ -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);