Skip to content

Commit a04d8c0

Browse files
committed
更新README.md
1 parent 4ea77d5 commit a04d8c0

File tree

1 file changed

+2
-47
lines changed

1 file changed

+2
-47
lines changed

README.md

Lines changed: 2 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -36,55 +36,10 @@ npm run build
3636
npm run build --report
3737
```
3838

39+
## Nginx简单部署配置
3940

40-
## **项目结构**
41+
将打包后的文件放到Nginx安装目录中的html文件夹内,然后对Nginx进行简单配置即可。
4142

42-
``` bash
43-
./root
44-
├── ...
45-
│ ├── mock/ // 模拟请求
46-
├── src
47-
│ ├── components
48-
│ │ ├── platformCom // 平台通用组件
49-
│ │ │ ├── ...
50-
│ │ │ ├── install.js // 平台组件全局注册
51-
│ │ ├── customCom // 项目组件
52-
│ │ │ ├── global/ // 项目全局组件
53-
│ │ │ │ ├── ...
54-
│ │ │ │ ├── install.js // 项目全局组件安装
55-
│ │ │ ├── locale/ // 项目局部组件
56-
│ ├── lang // 国际化文件
57-
│ │ ├── en.js
58-
│ │ ├── zh-cn.js
59-
│ │ ├── ...
60-
│ ├── page // 项目页面
61-
│ │ ├── ... // 页面名称
62-
│ │ │ ├── *.vue // vue文件
63-
│ │ │ ├── ...
64-
│ ├── util // 通用工具
65-
│ │ ├── ajax.js // axios全局设置
66-
│ │ ├── i18n.js // 国际化全局设置
67-
│ │ ├── amap.js // 高德地图注册
68-
│ │ ├── ...
69-
│ ├── store // vuex状态管理
70-
│ │ ├── modules/ // vuex的modules
71-
│ │ ├── state.js
72-
│ │ ├── getter.js
73-
│ │ ├── mutations.js
74-
│ │ ├── actions.js
75-
│ │ ├── store.js
76-
│ ├── router
77-
│ │ ├── asyncRoute.js // 异步路由表
78-
│ │ ├── staticRoute.js // 静态路由
79-
│ │ ├── whiteList.js // 无需权限访问白名单
80-
│ │ ├── index.js // vue-router路由配置
81-
│ ├── index.html // 单文件入口渲染模板
82-
│ ├── index.vue // 首页vue
83-
│ ├── main.js // webpack入口文件
84-
├── ...
85-
```
86-
87-
## Nginx简单部署配置
8843
```
8944
...
9045
# 以上保持默认配置即可

0 commit comments

Comments
 (0)