28 lines
429 B
Vue
28 lines
429 B
Vue
<script setup lang="ts">
|
|
import { onMounted } from 'vue';
|
|
import { useLoginStore } from './store/LoginStore';
|
|
|
|
const loginStore = useLoginStore();
|
|
|
|
onMounted(() => {
|
|
// 初始化自动登出计时器
|
|
loginStore.initAutoLogout();
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<router-view>
|
|
</router-view>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="less">
|
|
*{
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
</style>
|