From c8b910d7f713b4d1e4b6ffea12ad223a9de1072f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Wed, 15 May 2019 17:25:51 +0800 Subject: [PATCH] set defult router --- config/config.ts | 7 +------ functions/package.json | 23 ----------------------- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 functions/package.json diff --git a/config/config.ts b/config/config.ts index fb3df497..c84b8070 100644 --- a/config/config.ts +++ b/config/config.ts @@ -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', diff --git a/functions/package.json b/functions/package.json deleted file mode 100644 index fe77db2a..00000000 --- a/functions/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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 -} -- GitLab