slidev-theme-gtlabo 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Citation.vue +10 -1
- package/package.json +1 -1
package/components/Citation.vue
CHANGED
|
@@ -130,7 +130,14 @@ const formatCitation = (data) => {
|
|
|
130
130
|
// 現在のページに引用を登録(slide-bottom.vue用)
|
|
131
131
|
const registerCitation = () => {
|
|
132
132
|
const page = $page
|
|
133
|
-
|
|
133
|
+
console.log('=== Citation registerCitation ===')
|
|
134
|
+
console.log('$page:', page)
|
|
135
|
+
console.log('props.id:', props.id)
|
|
136
|
+
|
|
137
|
+
if (!page) {
|
|
138
|
+
console.log('→ page が null')
|
|
139
|
+
return
|
|
140
|
+
}
|
|
134
141
|
|
|
135
142
|
if (!window.pageCitations.data.has(page)) {
|
|
136
143
|
window.pageCitations.data.set(page, new Set())
|
|
@@ -141,6 +148,8 @@ const registerCitation = () => {
|
|
|
141
148
|
pageSet.add(props.id)
|
|
142
149
|
notifyListeners()
|
|
143
150
|
}
|
|
151
|
+
console.log('→ 登録完了')
|
|
152
|
+
console.log('window.pageCitations.data:', [...window.pageCitations.data.entries()])
|
|
144
153
|
}
|
|
145
154
|
|
|
146
155
|
// 現在のページから引用を解除
|