import { defineComponentMetadata } from '@/components/define' import { childList } from '@/core/observer' let relationList: Element const observeFans = async (node: Element) => { // 监听关注列表元素变化 childList(node, () => { // 读取Vue属性里的关注列表 // eslint-disable-next-line no-underscore-dangle const subscribeTime = ( relationList.parentElement.parentElement.parentElement.parentElement as any ).__vue__.relationList.map(l => l.mtime) // 为所有子元素添加关注时间显示 relationList.querySelectorAll('.list-item>.content').forEach((e, index) => { // 防止重复添加元素 if (e.querySelector('.subscribe-time-fix') === null) { const time = subscribeTime[index] if (time !== undefined) { e.querySelector('p').insertAdjacentHTML( 'afterend', `