Forráskód Böngészése

set defult router

陈帅 6 éve
szülő
commit
c8b910d7f7
2 módosított fájl, 1 hozzáadás és 29 törlés
  1. 1 6
      config/config.ts
  2. 0 23
      functions/package.json

+ 1 - 6
config/config.ts

@@ -83,18 +83,13 @@ export default {
   // 路由配置
   routes: [
     {
-      path: '/user',
-      components: ['../layouts/UserLayout'],
-      routes: [],
-    },
-    {
       path: '/',
       component: '../layouts/BasicLayout',
       Routes: ['src/pages/Authorized'],
       authority: ['admin', 'user'],
       routes: [
         {
-          path: '/analysis',
+          path: '/',
           name: 'Analysis',
           icon: 'dashboard',
           component: './analysis',

+ 0 - 23
functions/package.json

@@ -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
-}