Commit c8b910d7 authored by 陈帅's avatar 陈帅

set defult router

parent 7e187a90
......@@ -82,11 +82,6 @@ export default {
devtool: ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION ? 'source-map' : false,
// 路由配置
routes: [
{
path: '/user',
components: ['../layouts/UserLayout'],
routes: [],
},
{
path: '/',
component: '../layouts/BasicLayout',
......@@ -94,7 +89,7 @@ export default {
authority: ['admin', 'user'],
routes: [
{
path: '/analysis',
path: '/',
name: 'Analysis',
icon: 'dashboard',
component: './analysis',
......
{
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"serve": "firebase serve --only functions",
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "npm run mock && firebase deploy --only functions",
"logs": "firebase functions:log",
"mock": "node ../scripts/generateMock.js"
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"body-parser": "^1.18.3",
"express": "^4.16.4",
"firebase-admin": "^6.4.0",
"firebase-functions": "^2.1.0",
"mockjs": "^1.0.1-beta3",
"moment": "^2.22.2",
"path-to-regexp": "^3.0.0"
},
"private": true
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment