Files
yl/MacroinfManage_MES/src/App.vue
2026-05-23 14:07:11 +08:00

33 lines
541 B
Vue

<template>
<div id="app" @click="updateLastTime()">
<router-view v-if="isRouterAlive"/>
</div>
</template>
<script>
export default {
name: 'App',
provide() {
return {
reload: this.reload
}
},
data() {
return {
isRouterAlive: true
}
},
methods: {
reload() {
this.isRouterAlive = false
this.$nextTick(function() {
this.isRouterAlive = true
})
},
updateLastTime() {
this.$store.commit('login/SET_LASTTIME', new Date().getTime())
}
}
}
</script>