xgb 14 ore fa
parent
commit
112e91ad2e

+ 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;