소스 검색

关联bug 修复

xgb 14 시간 전
부모
커밋
112e91ad2e
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/views/course/userCourse/public.vue
  2. 1 1
      src/views/course/userTalent/index.vue
  3. 1 1
      src/views/course/userVideo/index.vue

+ 1 - 1
src/views/course/userCourse/public.vue

@@ -632,7 +632,7 @@ export default {
 
     },
     talentMethod(query) {
-      if (query !== '') {
+      if (/^\d{11}$/.test(query)) {
         this.talentParam.phone = query;
         listBySearch(this.talentParam).then(response => {
           this.talentList = response.data;

+ 1 - 1
src/views/course/userTalent/index.vue

@@ -423,7 +423,7 @@ export default {
       }
     },
     userMethod(query){
-      if (query !== '') {
+      if (/^\d{11}$/.test(query)) {
         this.userParam.phone = query;
         listBySearch(this.userParam).then(response => {
           this.userList = response.data;

+ 1 - 1
src/views/course/userVideo/index.vue

@@ -665,7 +665,7 @@ export default {
       this.getList()
     },
     talentMethod(query){
-      if (query !== '') {
+      if (/^\d{11}$/.test(query)) {
         this.talentParam.phone = query;
         listBySearch(this.talentParam).then(response => {
           this.talentList = response.data;