Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zhangjian1949
microservices-platform
提交
f6a37b78
microservices-platform
项目概览
zhangjian1949
/
microservices-platform
与 Fork 源项目一致
Fork自
zlt2000 / microservices-platform
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
microservices-platform
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f6a37b78
编写于
2月 01, 2019
作者:
zlt2000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
扩展前端多环境部署动态适配环境地址
上级
ea9d203a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
20 addition
and
4 deletion
+20
-4
zlt-web/back-web/src/main/resources/static/index.html
zlt-web/back-web/src/main/resources/static/index.html
+1
-1
zlt-web/back-web/src/main/resources/static/login.html
zlt-web/back-web/src/main/resources/static/login.html
+1
-1
zlt-web/back-web/src/main/resources/static/module/apiUrl.js
zlt-web/back-web/src/main/resources/static/module/apiUrl.js
+1
-0
zlt-web/back-web/src/main/resources/static/module/config.js
zlt-web/back-web/src/main/resources/static/module/config.js
+17
-2
未找到文件。
zlt-web/back-web/src/main/resources/static/index.html
浏览文件 @
f6a37b78
...
...
@@ -53,7 +53,7 @@
<!-- 手机屏幕遮罩层 -->
<div
class=
"site-mobile-shade"
></div>
</div>
<script
type=
"text/javascript"
src=
"module/apiUrl.js"
></script>
<script
type=
"text/javascript"
src=
"assets/libs/jquery-3.2.1.min.js"
></script>
<script
type=
"text/javascript"
src=
"assets/libs/q.js"
></script>
<script
type=
"text/javascript"
src=
"assets/libs/pandyle.min.js"
></script>
...
...
zlt-web/back-web/src/main/resources/static/login.html
浏览文件 @
f6a37b78
...
...
@@ -58,7 +58,7 @@
<p>
© 2018
<a
href=
"javascript:;"
target=
"_blank"
>
zlt版权所有
</a></p>
</div>
</div>
<script
type=
"text/javascript"
src=
"module/apiUrl.js"
></script>
<script
type=
"text/javascript"
src=
"assets/libs/layui/layui.js"
></script>
<script
type=
"text/javascript"
src=
"assets/libs/login.js"
></script>
<script
type=
"text/javascript"
src=
"module/Math.uuid.js"
></script>
...
...
zlt-web/back-web/src/main/resources/static/module/apiUrl.js
0 → 100644
浏览文件 @
f6a37b78
var
my_api_server_url
=
'
http://127.0.0.1:9900/
'
;
\ No newline at end of file
zlt-web/back-web/src/main/resources/static/module/config.js
浏览文件 @
f6a37b78
layui
.
define
(
function
(
exports
)
{
/**
* 用于动态切换环境地址
*/
//默认地址
var
defUrl
=
'
http://127.0.0.1:9900/
'
;
//当前环境的api地址
var
apiUrl
;
try
{
if
(
my_api_server_url
.
length
>
0
)
{
apiUrl
=
my_api_server_url
;
}
else
{
apiUrl
=
defUrl
;
}
}
catch
(
e
)
{
apiUrl
=
defUrl
;
}
var
config
=
{
base_server
:
'
http://127.0.0.1:9900/
'
,
// 接口地址,实际项目请换成http形式的地址
base_server
:
apiUrl
,
tableName
:
'
easyweb
'
,
// 存储表名
autoRender
:
false
,
// 窗口大小改变后是否自动重新渲染表格,解决layui数据表格非响应式的问题,目前实现的还不是很好,暂时关闭该功能
pageTabs
:
true
,
// 是否开启多标签
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录