refactor: change mock files to commonjs (#3246)

This commit is contained in:
花裤衩
2020-06-11 11:40:53 +08:00
committed by GitHub
parent 0bf61aac53
commit d3bd933a8e
9 changed files with 74 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
// Just a mock data
export const constantRoutes = [
const constantRoutes = [
{
path: '/redirect',
component: 'layout/Layout',
@@ -72,7 +72,7 @@ export const constantRoutes = [
}
]
export const asyncRoutes = [
const asyncRoutes = [
{
path: '/permission',
component: 'layout/Layout',
@@ -523,3 +523,8 @@ export const asyncRoutes = [
{ path: '*', redirect: '/404', hidden: true }
]
module.exports = {
constantRoutes,
asyncRoutes
}