|
@@ -14,8 +14,8 @@ class ShowLogObserver {
|
|
|
entries.forEach((entry) => {
|
|
|
if (entry.isIntersecting) {
|
|
|
this.report(entry);
|
|
|
- // logOnce === '1' && 曝光之后取消观察
|
|
|
- if (entry?.target?.getAttribute('logOnce') === '1') {
|
|
|
+ // show-log-once === '1' && 曝光之后取消观察
|
|
|
+ if (entry?.target?.getAttribute('show-log-once') === '1') {
|
|
|
this.remove(entry.target);
|
|
|
}
|
|
|
}
|