File tree 3 files changed +7
-13
lines changed
3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,6 @@ export default [
8
8
to : '/dashboard' ,
9
9
icon : 'cil-speedometer'
10
10
} ,
11
-
12
- {
13
- _name : 'CSidebarNavTitle' ,
14
- _children : [ 'Ürün' ]
15
- } ,
16
11
{
17
12
_name : 'CSidebarNavDropdown' ,
18
13
name : 'Ürün Yönetimi' ,
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ export const registerConfirm = (vueContext, param) => {
36
36
} )
37
37
} ;
38
38
39
+ export const getUserAndMenus = ( vueContext ) => {
40
+ return util . service . get ( "user/menus" )
41
+ . then ( response => {
42
+ console . log ( response ) ;
43
+ } )
44
+ }
39
45
40
46
export const login = ( vueContext , loginData ) => {
41
47
loginData . password = util . randomCode ( loginData . password ) ;
@@ -46,6 +52,7 @@ export const login = (vueContext, loginData) => {
46
52
loginData . username = null ;
47
53
if ( response ) {
48
54
util . common . loginSuccessfully ( response . data ) ;
55
+ vueContext . dispatch ( "getUserAndMenus" ) ;
49
56
vueContext . dispatch ( "getTradeResult" ) ;
50
57
util . common . routePush ( "dashboard" ) ;
51
58
util . common . control ( response ) ;
Original file line number Diff line number Diff line change @@ -76,14 +76,6 @@ const routes = [
76
76
}
77
77
} ,
78
78
children : [
79
- /* {
80
- path: "productList",
81
- name: "ProductList",
82
- component: () => System.import('../components/ProductList'),
83
- beforeEnter(to, from, next) {
84
- controlLogin(next);
85
- }
86
- },*/
87
79
{
88
80
path : "purchase" ,
89
81
name : "ProductPurchase" ,
You can’t perform that action at this time.
0 commit comments