|
@@ -23,7 +23,6 @@ import { mapGetters } from 'vuex'
|
23
|
23
|
import Logo from './Logo'
|
24
|
24
|
import SidebarItem from './SidebarItem'
|
25
|
25
|
import variables from '@/styles/variables.scss'
|
26
|
|
-import { getUserId } from '@/utils/auth'
|
27
|
26
|
|
28
|
27
|
export default {
|
29
|
28
|
components: { SidebarItem, Logo },
|
|
@@ -32,11 +31,7 @@ export default {
|
32
|
31
|
'sidebar'
|
33
|
32
|
]),
|
34
|
33
|
routes() {
|
35
|
|
- var newData = this.$router.options.routes
|
36
|
|
- if (getUserId() !== '1') {
|
37
|
|
- newData.splice(6, 1)
|
38
|
|
- }
|
39
|
|
- return newData
|
|
34
|
+ return this.$router.options.routes
|
40
|
35
|
},
|
41
|
36
|
activeMenu() {
|
42
|
37
|
const route = this.$route
|