1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
| <template>
| <div id="main" class="app-main">
| <router-view></router-view>
| </div>
| </template>
|
| <script>
| import { getCategoryTree } from '@/api/goods.js'
| export default {
| updated () {
| if (!localStorage.getItem('category') && this.$route.path !== '/login') {
| getCategoryTree(0).then(res => {
| if (res.success) {
| localStorage.setItem('category', JSON.stringify(res.result))
| }
| })
| }
| },
|
| };
| </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;
| }
|
| .tox-notifications-container {
| display: none !important;
| }
| </style>
|
|