Ver código fonte

修改获取主讲人接口

1
mo 3 anos atrás
pai
commit
a2eb8a9dc4
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/views/liveClassManager/newLiveClass.vue

+ 3 - 3
src/views/liveClassManager/newLiveClass.vue

@@ -306,7 +306,7 @@ export default {
       if (query !== "") {
         this.remoteLoading = true;
         // 发请求搜索
-        const url = "/api-auth/user/queryLike";
+        const url = "/api-web/teacher/queryPage";
         const options = {
           method: "get",
           headers: {
@@ -326,8 +326,8 @@ export default {
           let result = res.data;
           if (result.code == 200) {
             // Array.prototype.splice.apply(this.studentList, result.data.rows);
-            if (result.data && result.data.length > 0) {
-              result.data.forEach((item) => {
+            if (result.data && result.data.rows.length > 0) {
+              result.data.rows.forEach((item) => {
                 this.teacherList.unshift(item);
               });
               this.teacherList = this.deweight(this.teacherList, "phone");