lrf402788946 5 年之前
父节点
当前提交
a1b984959a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/teacher/verify.vue

+ 2 - 2
src/views/teacher/verify.vue

@@ -101,7 +101,7 @@ export default {
   }),
   created() {},
   methods: {
-    ...mapActions(['fetch', 'create', 'update', 'status']),
+    ...mapActions({ fetch: 'fetch', create: 'create', update: 'update', changeStatus: 'status' }),
     async search() {
       const res = await this.fetch(this.id);
       if (this.$checkRes(res)) this.$set(this, `info`, res.data);
@@ -114,7 +114,7 @@ export default {
       let msg;
       let teachersid = [];
       teachersid.push(this.id);
-      res = await this.status({ teachersid, ...object });
+      res = await this.changeStatus({ teachersid, ...object });
       msg = `${this.keyWord}审核成功`;
       if (this.$checkRes(res, msg)) this.$router.push({ path: '/teacher/index' });
     },