14 lines
261 B
TypeScript
14 lines
261 B
TypeScript
import { onActivated, onDeactivated } from 'vue'
|
|
|
|
export function useBase() {
|
|
const mainScroll = $ref()
|
|
const mainScrollTop = $ref(0)
|
|
onActivated(() => {
|
|
console.log('onActivated')
|
|
})
|
|
|
|
onDeactivated(() => {
|
|
console.log('onDeactivated')
|
|
})
|
|
}
|