Merge remote-tracking branch 'origin/release/1.0' into release/1.0
Showing
4 changed files
with
18 additions
and
13 deletions
1 | <template> | 1 | <template> |
2 | <Row class="layout-header"> | 2 | <Row class="layout-header"> |
3 | <Col :span="12" class="brand-title"> | 3 | <Col :span="12" class="brand-title"> |
4 | - <i class="fa fa-bars" aria-hidden="true" @click="$emit('menu-trigger')"></i> | 4 | + <i class="iconfont icon-alignjustify" aria-hidden="true" @click="$emit('menu-trigger')"></i> |
5 | {{userInfo.name}} | 5 | {{userInfo.name}} |
6 | </Col> | 6 | </Col> |
7 | <Col :span="12" class="shop-info"> | 7 | <Col :span="12" class="shop-info"> |
@@ -49,15 +49,15 @@ export default { | @@ -49,15 +49,15 @@ export default { | ||
49 | .layout-header { | 49 | .layout-header { |
50 | height: 50px !important; | 50 | height: 50px !important; |
51 | background: #fff; | 51 | background: #fff; |
52 | - box-shadow: 0 1px 1px rgba(0, 0, 0, .1); | 52 | + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); |
53 | font-size: 14px; | 53 | font-size: 14px; |
54 | line-height: 20px; | 54 | line-height: 20px; |
55 | padding: 15px; | 55 | padding: 15px; |
56 | position: relative; | 56 | position: relative; |
57 | 57 | ||
58 | &.user-collapse { | 58 | &.user-collapse { |
59 | - height: 0px !important; | ||
60 | - padding: 0px !important; | 59 | + height: 0 !important; |
60 | + padding: 0 !important; | ||
61 | overflow: hidden; | 61 | overflow: hidden; |
62 | 62 | ||
63 | .fa-bars { | 63 | .fa-bars { |
@@ -67,7 +67,8 @@ export default { | @@ -67,7 +67,8 @@ export default { | ||
67 | } | 67 | } |
68 | 68 | ||
69 | &.print-hide { | 69 | &.print-hide { |
70 | - display: none; } | 70 | + display: none; |
71 | + } | ||
71 | 72 | ||
72 | .fa { | 73 | .fa { |
73 | font-size: 20px; | 74 | font-size: 20px; |
@@ -75,7 +76,7 @@ export default { | @@ -75,7 +76,7 @@ export default { | ||
75 | margin-right: 10px; | 76 | margin-right: 10px; |
76 | cursor: pointer; | 77 | cursor: pointer; |
77 | } | 78 | } |
78 | - | 79 | + |
79 | .shop-info { | 80 | .shop-info { |
80 | text-align: right; | 81 | text-align: right; |
81 | padding-right: 20px; | 82 | padding-right: 20px; |
@@ -91,7 +92,7 @@ export default { | @@ -91,7 +92,7 @@ export default { | ||
91 | } | 92 | } |
92 | 93 | ||
93 | .logout { | 94 | .logout { |
94 | - color: #F44545; | 95 | + color: #f44545; |
95 | font-size: 12px; | 96 | font-size: 12px; |
96 | margin-left: 5px; | 97 | margin-left: 5px; |
97 | } | 98 | } |
@@ -3,5 +3,8 @@ const page = r => require.ensure([], () => r(require('./overview')), 'home.overv | @@ -3,5 +3,8 @@ const page = r => require.ensure([], () => r(require('./overview')), 'home.overv | ||
3 | export default { | 3 | export default { |
4 | path: '/overview.html', | 4 | path: '/overview.html', |
5 | name: 'overview', | 5 | name: 'overview', |
6 | - component: page | 6 | + component: page, |
7 | + meta: { | ||
8 | + authPass: true | ||
9 | + } | ||
7 | }; | 10 | }; |
@@ -19,9 +19,7 @@ const plugin = { | @@ -19,9 +19,7 @@ const plugin = { | ||
19 | checkPurview() { | 19 | checkPurview() { |
20 | return Promise.resolve(); | 20 | return Promise.resolve(); |
21 | 21 | ||
22 | - // let pUrl = `/${_.split(to.name, '.').join('/')}`; | ||
23 | - | ||
24 | - // let pur = _.find(purviews, p => p.menu_url === pUrl); | 22 | + // let pur = _.find(Vue.$purviews, p => p.menu_url === to.path); |
25 | 23 | ||
26 | // if (pur) { | 24 | // if (pur) { |
27 | // return Promise.resolve(); | 25 | // return Promise.resolve(); |
@@ -42,6 +40,8 @@ const plugin = { | @@ -42,6 +40,8 @@ const plugin = { | ||
42 | user = Rsa.decrypt(user, Object); | 40 | user = Rsa.decrypt(user, Object); |
43 | return this.initPurview(Vue, user).then(() => { | 41 | return this.initPurview(Vue, user).then(() => { |
44 | next(); | 42 | next(); |
43 | + }, () => { | ||
44 | + next(); | ||
45 | }); | 45 | }); |
46 | } | 46 | } |
47 | next(); | 47 | next(); |
@@ -65,7 +65,7 @@ const plugin = { | @@ -65,7 +65,7 @@ const plugin = { | ||
65 | return next('/login.html'); | 65 | return next('/login.html'); |
66 | } | 66 | } |
67 | 67 | ||
68 | - return this.checkPurview(Vue.$purviews, to).then(() => { | 68 | + return this.checkPurview(Vue, to).then(() => { |
69 | return next(); | 69 | return next(); |
70 | }, () => { | 70 | }, () => { |
71 | return next('/401.html'); | 71 | return next('/401.html'); |
-
Please register or login to post a comment