mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 10:57:26 +08:00
54 lines
826 B
Vue
54 lines
826 B
Vue
<template>
|
|
<div id="main" class="app-main">
|
|
<router-view />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Cookies from "js-cookie";
|
|
import util from "@/libs/util";
|
|
|
|
export default {
|
|
name: "App",
|
|
mounted() {
|
|
const loggedIn =
|
|
this.getStore("accessToken") || Cookies.get("userInfoSeller");
|
|
if (loggedIn) {
|
|
util.bootstrapDynamicRoutesFromCache();
|
|
util.initRouter(this);
|
|
this.$store.commit("setOpenedList");
|
|
this.$store.commit("initCachepage");
|
|
}
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #f0f0f0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.app-main {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.br button {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.operation button {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.tox-notifications-container {
|
|
display: none !important;
|
|
}
|
|
</style>
|