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