fix. 코드 경고 수정
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
export default defineNuxtPlugin(() => {
|
||||
const router = useRouter()
|
||||
const modalStore = useModalStore()
|
||||
|
||||
router.beforeEach((to, from) => {
|
||||
const modalStore = useModalStore()
|
||||
|
||||
if (to.path !== from.path) {
|
||||
modalStore.handleResetModalAll()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user