Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
f3b811fa
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
大约 1 年 前同步成功
通知
337
Star
18155
Fork
5506
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f3b811fa
编写于
3月 08, 2021
作者:
joewan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
集中配置端口
上级
10e6f1c4
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
5 deletion
+9
-5
web/build.config.js
web/build.config.js
+2
-0
web/src/main.js
web/src/main.js
+3
-2
web/src/view/systemTools/formCreate/index.vue
web/src/view/systemTools/formCreate/index.vue
+2
-1
web/vue.config.js
web/vue.config.js
+2
-2
未找到文件。
web/build.config.js
浏览文件 @
f3b811fa
...
...
@@ -2,6 +2,8 @@
module
.
exports
=
{
title
:
'
GIN-VUE-ADMIN1
'
,
vueClientPort
:
8080
,
goServerPort
:
8888
,
baseCdnUrl
:
'
//cdn.staticfile.org
'
,
cdns
:
[
/**
...
...
web/src/main.js
浏览文件 @
f3b811fa
...
...
@@ -43,13 +43,14 @@ export default new Vue({
//引入echarts
import
echarts
from
'
echarts
'
import
buildConfig
from
'
../build.config
'
;
Vue
.
prototype
.
$echarts
=
echarts
;
console
.
log
(
`
欢迎使用 Gin-Vue-Admin
当前版本:V2.4.0
加群方式:微信: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
`
)
\ No newline at end of file
web/src/view/systemTools/formCreate/index.vue
浏览文件 @
f3b811fa
<
template
>
<div
style=
"height:80vh"
>
<iframe
width=
"100%"
height=
"100%"
:src=
"
'http://127.0.0.1:8888/form-generator/#/'
"
frameborder=
"0"
></iframe>
<iframe
width=
"100%"
height=
"100%"
:src=
"
url
"
frameborder=
"0"
></iframe>
</div>
</
template
>
...
...
@@ -10,6 +10,7 @@ export default {
name
:
"
FormGenerator
"
,
data
(){
return
{
url
:
'
http://127.0.0.1:
'
+
buildConf
.
goServerPort
+
'
/form-generator/#/
'
,
basePath
:
path
}
},
...
...
web/vue.config.js
浏览文件 @
f3b811fa
...
...
@@ -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
.
port
+
`
/`
,
//代理到 目标路径
changeOrigin
:
true
,
pathRewrite
:
{
// 修改路径数据
[
'
^
'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
// 举例 '^/api:""' 把路径中的/api字符串删除
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录