You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
539 B
26 lines
539 B
import Mock from 'mockjs' |
|
|
|
Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/routes`, 'get', () => { |
|
let result = {} |
|
result.code = 0 |
|
result.data = [{ |
|
router: 'root', |
|
children: [ |
|
{ |
|
router: 'dashboard', |
|
children: ['workplace', 'analysis'], |
|
}, |
|
{ |
|
router: 'form', |
|
children: ['basicForm', 'stepForm', 'advanceForm'] |
|
}, |
|
{ |
|
router: 'basicForm', |
|
name: '验权表单', |
|
icon: 'file-excel', |
|
authority: 'form' |
|
} |
|
] |
|
}] |
|
return result |
|
})
|
|
|