Browse Source

增强检查机制。

master
宋杰 1 week ago
parent
commit
3f93adcc2b
  1. 6
      src/views/AiEmotion.vue

6
src/views/AiEmotion.vue

@ -1900,7 +1900,11 @@ function isDataLoaded() {
// Intersection Observer
function setupIntersectionObserver() {
if (!scenarioApplicationRef.value) return;
// scenarioApplicationRef.value DOM
if (!scenarioApplicationRef.value || !(scenarioApplicationRef.value instanceof Element)) {
console.warn('scenarioApplicationRef.value 不是有效的 DOM 元素,跳过 IntersectionObserver 设置');
return;
}
const observer = new IntersectionObserver(
(entries) => {

Loading…
Cancel
Save