feat: batch notifications
This commit is contained in:
@@ -43,7 +43,6 @@ export class Quiz {
|
||||
}
|
||||
|
||||
save(blockContent) {
|
||||
console.log(blockContent)
|
||||
return {
|
||||
quiz: this.data.quiz,
|
||||
}
|
||||
|
||||
11
frontend/src/utils/scrollContainer.js
Normal file
11
frontend/src/utils/scrollContainer.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export function scrollTo(...options) {
|
||||
if (!options || options.length === 0) return
|
||||
const container = getScrollContainer()
|
||||
if (!container) return
|
||||
container.scrollTo(...options)
|
||||
}
|
||||
|
||||
export function getScrollContainer() {
|
||||
// window.scrollContainer is reference to the scroll container in DesktopLayout.vue and MobileLayout.vue
|
||||
return window.scrollContainer
|
||||
}
|
||||
Reference in New Issue
Block a user