18 lines
268 B
Vue
Raw Normal View History

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