Merge branch 'develop' of https://github.com/flipped-aurora/gin-vue-admin into gva_gormv2_dev
Conflicts: web/src/view/systemTools/formCreate/index.vue
This commit is contained in:
@@ -27,3 +27,52 @@ npm run lint
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||
|
||||
整理代码结构
|
||||
``` lua
|
||||
web
|
||||
├── public -- public
|
||||
| ├── favicon.ico -- ico
|
||||
| └── index.html -- index
|
||||
├── src -- 源代码
|
||||
│ ├── api -- 所有请求
|
||||
│ ├── assets -- 主题 字体等静态资源
|
||||
| ├── components -- components组件
|
||||
| ├── directive -- 公用方法
|
||||
| ├── mixins -- 公用方法
|
||||
| ├── router -- 路由权限
|
||||
| ├── store -- store
|
||||
| | ├── modules -- modules
|
||||
| | | ├── dictionary.js -- 动态路由
|
||||
| | | ├── router.js -- 路由
|
||||
| | | └── user.js -- 用户权限菜单过滤
|
||||
| | ├── getters.js -- getters
|
||||
| | └── index.js -- index
|
||||
| ├── styles -- css
|
||||
| ├── utils -- utils 组件
|
||||
| ├── view -- 主要view代码
|
||||
| | ├── about -- 关于我们
|
||||
| | ├── dashboard -- 面板
|
||||
| | ├── error -- 错误
|
||||
| | ├── example --上传案例
|
||||
| | ├── iconList -- icon列表
|
||||
| | ├── init -- 初始化数据
|
||||
| | ├── layout -- layout约束页面
|
||||
| | | ├── aside --
|
||||
| | | ├── bottomInfo -- bottomInfo
|
||||
| | | ├── screenfull -- 全屏设置
|
||||
| | | └── index.vue -- base 约束
|
||||
| | ├── login --结算单管理
|
||||
| | ├── person --结算单管理
|
||||
| | ├── superAdmin -- 超级管理员操作
|
||||
| | └── home.vue -- page 入口页面
|
||||
│ ├── App.vue -- 入口页面
|
||||
│ ├── main.js -- 入口文件 加载组件 初始化等
|
||||
│ └── permission.js -- 跳转
|
||||
├── build.config.js -- 环境变量build配置
|
||||
├── openDocument.js -- 商用代码公司自用产品无需授权
|
||||
├── .babelrc -- babel-loader 配置
|
||||
├── .travis.yml -- 自动化CI配置
|
||||
├── vue.config.js -- vue-cli 配置
|
||||
└── package.json -- package.json
|
||||
```
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
module.exports = {
|
||||
title: 'GIN-VUE-ADMIN1',
|
||||
vueClientPort: 8080,
|
||||
goServerPort: 8888,
|
||||
baseCdnUrl: '//cdn.staticfile.org',
|
||||
cdns: [
|
||||
/**
|
||||
|
||||
+2
-3
@@ -146,12 +146,11 @@ export default new Vue({
|
||||
store
|
||||
}).$mount('#app')
|
||||
|
||||
|
||||
console.log(`
|
||||
欢迎使用 Gin-Vue-Admin
|
||||
当前版本:V2.4.1
|
||||
加群方式:微信:shouzi_1994 QQ群:622360840
|
||||
默认自动化文档地址:http://127.0.0.1%s/swagger/index.html
|
||||
默认前端文件运行地址:http://127.0.0.1:8080
|
||||
默认自动化文档地址:http://127.0.0.1:` + buildConfig.goServerPort + `/swagger/index.html
|
||||
默认前端文件运行地址:http://127.0.0.1:`+ buildConfig.vueClientPort + `
|
||||
如果项目让您获得了收益,希望您能请团队喝杯可乐:https://www.gin-vue-admin.com/docs/coffee
|
||||
`)
|
||||
+2
-2
@@ -15,7 +15,7 @@ module.exports = {
|
||||
lintOnSave: process.env.NODE_ENV === 'development',
|
||||
productionSourceMap: false,
|
||||
devServer: {
|
||||
port: 8080,
|
||||
port: buildConf.vueClientPort,
|
||||
open: true,
|
||||
overlay: {
|
||||
warnings: false,
|
||||
@@ -25,7 +25,7 @@ module.exports = {
|
||||
// 把key的路径代理到target位置
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: { //需要代理的路径 例如 '/api'
|
||||
target: `http://127.0.0.1:8888/`, //代理到 目标路径
|
||||
target: `http://127.0.0.1:` + buildConf.goServerPort + `/`, //代理到 目标路径
|
||||
changeOrigin: true,
|
||||
pathRewrite: { // 修改路径数据
|
||||
['^' + process.env.VUE_APP_BASE_API]: '' // 举例 '^/api:""' 把路径中的/api字符串删除
|
||||
|
||||
Reference in New Issue
Block a user