20 lines
268 B
Vue
Raw Normal View History

2022-08-02 10:16:07 +08:00
<template>
<div id="app">
<router-view/>
</div>
</template>
<script>
import { getToken } from '@/util/auth'
export default {
created () {
if (!getToken()) {
this.$router.push({ name: 'logo' })
}
}
}
</script>
<style lang="scss">
</style>