|
@@ -551,6 +551,7 @@ export default function () {
|
|
|
// P260需求精准搜索无结果时 自动切换到模糊搜索(查询) 模糊搜索也无结果时再切回精准(不查询)
|
|
|
// 条件:1.精准搜索模式 2.返回无数据 3.有主关键词或附加词
|
|
|
let autoSwitchModel = false
|
|
|
+ const { goback } = useRoute().query
|
|
|
function changeSearchMode () {
|
|
|
const total = listState.total
|
|
|
const { searchMode, additionalWords, input } = inputKeywordsState.value
|
|
@@ -563,7 +564,6 @@ export default function () {
|
|
|
}
|
|
|
if(mhModel && autoSwitchModel) {
|
|
|
if( total > 0) {
|
|
|
- const { goback } = useRoute().query
|
|
|
if(!goback) {
|
|
|
that.$toast('精准搜索无结果,已为您自动切换到模糊搜索')
|
|
|
}
|
|
@@ -638,6 +638,7 @@ export default function () {
|
|
|
function beforeSearch (pageNum) {
|
|
|
// 列表清空
|
|
|
list.value = []
|
|
|
+ listState.total = 0
|
|
|
// 列表重新获取时
|
|
|
if(!pageNum) {
|
|
|
listState.pageNum = 1
|