瀏覽代碼

修改获取主讲人接口

1
mo 3 年之前
父節點
當前提交
a2eb8a9dc4
共有 1 個文件被更改,包括 3 次插入3 次删除
  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");