|
@@ -311,7 +311,8 @@ export default {
|
|
|
// 正则匹配标签置为空
|
|
|
const detail = this.detail.replace(/<[^>]+>/g, '')
|
|
|
const detailLower = detail.toLowerCase()
|
|
|
- let postion = detailLower.indexOf(this.keys[0])
|
|
|
+ const keyLower = this.keys[0].toLowerCase()
|
|
|
+ let postion = detailLower.indexOf(keyLower)
|
|
|
if (postion !== -1) {
|
|
|
if (postion - 10 > 0) {
|
|
|
return detail.substring(postion - 10)
|