无搜索结果时,提示资源网站名字

This commit is contained in:
haiyangcui
2020-08-14 19:41:00 +02:00
parent 1105c46f08
commit 37b41b0e20

View File

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