[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2025-04-15 06:17:06 +00:00 committed by GitHub
parent 2604aeb973
commit 2134b87d0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View File

@ -4,12 +4,12 @@ import VaporComp from './VaporComp.vue'
import SimpleVaporComp from './components/SimpleVaporComp.vue' import SimpleVaporComp from './components/SimpleVaporComp.vue'
const msg = ref('hello') const msg = ref('hello')
const passSlot = ref(true); const passSlot = ref(true)
(window as any).calls = []; ;(window as any).calls = []
(window as any).getCalls = () => { ;(window as any).getCalls = () => {
const ret = (window as any).calls.slice(); const ret = (window as any).calls.slice()
(window as any).calls = [] ;(window as any).calls = []
return ret return ret
} }

View File

@ -3,18 +3,18 @@ import { onActivated, onDeactivated, onMounted, onUnmounted, ref } from 'vue'
const msg = ref('vapor') const msg = ref('vapor')
onMounted(() => { onMounted(() => {
window.calls.push('mounted') window.calls.push('mounted')
}) })
onActivated(() => { onActivated(() => {
window.calls.push('activated') window.calls.push('activated')
}) })
onDeactivated(() => { onDeactivated(() => {
window.calls.push('deactivated') window.calls.push('deactivated')
}) })
onUnmounted(() => { onUnmounted(() => {
window.calls.push('unmounted') window.calls.push('unmounted')
}) })
</script> </script>
<template> <template>
<input type="text" v-model="msg" /> <input type="text" v-model="msg" />
</template> </template>