lilishop-ui/manager/src/App.vue

57 lines
833 B
Vue
Raw Normal View History

2021-05-13 10:56:04 +08:00
<template>
<div id="main" class="app-main">
<router-view></router-view>
</div>
</template>
<script>
2022-12-30 18:40:50 +08:00
import { getCategoryTree } from '@/api/goods.js'
2021-05-13 10:56:04 +08:00
export default {
2022-12-30 18:40:50 +08:00
updated () {
2021-05-13 10:56:04 +08:00
if (!localStorage.getItem('category') && this.$route.path !== '/login') {
getCategoryTree(0).then(res => {
if (res.success) {
localStorage.setItem('category', JSON.stringify(res.result))
}
})
}
},
2021-05-13 10:56:04 +08:00
};
</script>
<style>
html,
body {
width: 100%;
height: 100%;
background: #f0f0f0;
font-size: 12px;
}
.app-main {
width: 100%;
height: 100%;
}
.br button {
margin-right: 5px;
}
.operation button {
margin-right: 5px;
}
.ivu-btn-text:focus {
box-shadow: none !important;
}
.ivu-tag {
cursor: pointer;
}
2022-12-30 18:40:50 +08:00
.tox-notifications-container {
2022-07-05 18:04:04 +08:00
display: none !important;
}
2021-05-13 10:56:04 +08:00
</style>