Skip to content
Merged

V1 #148

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ export default {
### hideInMenu

- 参数类型: `boolean`
- 参数描述: 是否隐藏菜单
- 参数描述: 可以在菜单中不展示这个路由,包括子路由
- 默认值: false

### hideChildrenInMenu

- 参数类型: `boolean`
- 参数描述: 是否隐藏该菜单的子菜单
- 参数描述: 用于隐藏不需要在菜单中展示的子路由
- 默认值: false

# API
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"version": "1.0.0",
"main": "index.js",
"scripts": {
"analyze": "cross-env ANALYZE=1 umi build",
"bootstrap": "yarn || npm i",
"clean": "rimraf dist",
"start": "cross-env PORT=8080 umi dev",
"start": "umi dev",
"start:no-mock": "cross-env MOCK=none umi dev",
"build": "umi build",
"build:dev": "cross-env SERVER_ENV=dev umi build",
"build:test": "cross-env SERVER_ENV=test umi build",
Expand Down
3 changes: 1 addition & 2 deletions src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ export const AJAX_DEFAULT_CONFIG = {
withCredentials: true,
// 使用webpack DefinePlugin 插件
// 具体配置请查看 /config/server.config.ts
// @ts-ignore
baseURL: `${BASE_URL}/api/`,
};

// 项目相关配置
export const APP_DEFAULT_CONFIG = {
// 免登陆白名单
whiteList: ['/user/*']
whiteList: ['/user/*'],
};

// 本地存储Key
Expand Down
1 change: 1 addition & 0 deletions src/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ declare module '*.jpg';
declare module '*.jpeg';
declare module '*.gif';
declare module '*.bmp';
declare const BASE_URL: string;