guhongwei 4 年之前
父节点
当前提交
14d44c465b
共有 1 个文件被更改,包括 8 次插入12 次删除
  1. 8 12
      src/store/jobinfo.js

+ 8 - 12
src/store/jobinfo.js

@@ -15,18 +15,14 @@ export const actions = {
     let result;
     let result;
     if (type === 'list') {
     if (type === 'list') {
       let { schid, is_practice, ...searchInfo } = data;
       let { schid, is_practice, ...searchInfo } = data;
-      result = await this.$axios.$get(
-        api.list,
-        {},
-        {
-          schid: schid,
-          is_practice: is_practice,
-          skip: skip,
-          limit: limit,
-          status: 1,
-          ...searchInfo,
-        }
-      );
+      result = await this.$axios.$get(api.list, {
+        schid: schid,
+        is_practice: is_practice,
+        skip: skip,
+        limit: limit,
+        status: 1,
+        ...searchInfo,
+      });
     }
     }
     if (type === 'search') {
     if (type === 'search') {
       let { id } = data;
       let { id } = data;