lrf402788946 5 năm trước cách đây
mục cha
commit
6b2e49b346
2 tập tin đã thay đổi với 1 bổ sung2 xóa
  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);