Преглед на файлове

fix:搜索白名单字段取参错误处理

zhangsiya преди 1 година
родител
ревизия
f724a82f1c
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 2 4
      apps/bigmember_pc/src/views/search/bidding/model/modules/before-search.js

+ 2 - 4
apps/bigmember_pc/src/views/search/bidding/model/modules/before-search.js

@@ -20,7 +20,7 @@ export function beforeSearchModel (paramsObj = { }) {
 
 
     const { error_code: code, data } = await getInAntiSpiderWhiteList()
     const { error_code: code, data } = await getInAntiSpiderWhiteList()
     if(code === 0 && data) {
     if(code === 0 && data) {
-      onTheWhiteList.value = data.onTheWhiteList
+      onTheWhiteList.value = data.onTheWhitelist
 
 
       if (Array.isArray(data.filterReg)) {
       if (Array.isArray(data.filterReg)) {
         const newExp = []
         const newExp = []
@@ -29,9 +29,7 @@ export function beforeSearchModel (paramsObj = { }) {
         })
         })
         commonSearchWordsRegExp.value = newExp
         commonSearchWordsRegExp.value = newExp
       }
       }
-
-
-      if (keywords && !onTheWhiteList) {
+      if (keywords && !onTheWhiteList.value) {
         const timer = setTimeout(function() {
         const timer = setTimeout(function() {
           clearTimeout(timer)
           clearTimeout(timer)
           const hasCommonWords = checkAndClearTextIncludesCommonWords(keywords)
           const hasCommonWords = checkAndClearTextIncludesCommonWords(keywords)