File tree 1 file changed +2
-47
lines changed
1 file changed +2
-47
lines changed Original file line number Diff line number Diff line change @@ -36,55 +36,10 @@ npm run build
36
36
npm run build --report
37
37
```
38
38
39
+ ## Nginx简单部署配置
39
40
40
- ## ** 项目结构 **
41
+ 将打包后的文件放到Nginx安装目录中的html文件夹内,然后对Nginx进行简单配置即可。
41
42
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简单部署配置
88
43
```
89
44
...
90
45
# 以上保持默认配置即可
You can’t perform that action at this time.
0 commit comments