无搜索结果时,不需要提醒

This commit is contained in:
haiyangcui
2020-09-01 21:57:28 +02:00
parent 69a397e24e
commit 8d052d2904

View File

@@ -399,9 +399,6 @@ export default {
sites.forEach(site =>
zy.search(site.key, wd).then(res => {
const type = Object.prototype.toString.call(res)
if (type === '[object Undefined]') {
this.$message.info(site.name + ' 无搜索结果')
}
if (type === '[object Array]') {
res.forEach(element => {
element.site = site