Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
ee6e220b
提交
ee6e220b
authored
2月 26, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 前端调整
上级
5f6ab3c8
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
74 行增加
和
3 行删除
+74
-3
.env.development
frontend/.env.development
+8
-0
.env.production
frontend/.env.production
+7
-0
settings.js
frontend/src/settings.js
+54
-0
vue.config.js
frontend/vue.config.js
+5
-3
没有找到文件。
frontend/.env.development
0 → 100644
浏览文件 @
ee6e220b
ENV = 'development'
# 接口地址
VUE_APP_BASE_API = 'http://localhost:8081'
VUE_APP_WS_API = 'ws://localhost:8000'
# 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true
frontend/.env.production
0 → 100644
浏览文件 @
ee6e220b
ENV = 'production'
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
VUE_APP_BASE_API = 'https://el-admin.xin'
# 如果接口是 http 形式, wss 需要改为 ws
VUE_APP_WS_API = 'wss://el-admin.xin'
frontend/src/settings.js
0 → 100644
浏览文件 @
ee6e220b
module
.
exports
=
{
/**
* @description 网站标题
*/
title
:
'DATA-EASE'
,
/**
* @description 是否显示 tagsView
*/
tagsView
:
false
,
showSettings
:
true
,
/**
* @description 固定头部
*/
fixedHeader
:
true
,
/**
* @description 记住密码状态下的token在Cookie中存储的天数,默认1天
*/
tokenCookieExpires
:
1
,
/**
* @description 记住密码状态下的密码在Cookie中存储的天数,默认1天s
*/
passCookieExpires
:
1
,
/**
* @description 是否只保持一个子菜单的展开
*/
uniqueOpened
:
true
,
/**
* @description token key
*/
TokenKey
:
'EL-ADMIN-TOEKN'
,
/**
* @description 请求超时时间,毫秒(默认2分钟)
*/
timeout
:
1200000
,
/**
* @description 是否显示logo
*/
sidebarLogo
:
false
,
/**
* 是否显示设置的底部信息
*/
showFooter
:
true
,
/**
* 底部文字,支持html语法
*/
footerTxt
:
'© 2019 Zheng Jie <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License 2.0</a>'
,
/**
* 备案号
*/
caseNumber
:
'浙ICP备18005431号'
}
\ No newline at end of file
frontend/vue.config.js
浏览文件 @
ee6e220b
const
path
=
require
(
'path'
)
const
path
=
require
(
'path'
)
const
defaultSettings
=
require
(
'./src/settings.js'
)
function
resolve
(
dir
)
{
function
resolve
(
dir
)
{
return
path
.
join
(
__dirname
,
dir
)
return
path
.
join
(
__dirname
,
dir
)
}
}
const
name
=
defaultSettings
.
title
// 网址标题
const
port
=
8080
module
.
exports
=
{
module
.
exports
=
{
productionSourceMap
:
true
,
productionSourceMap
:
true
,
devServer
:
{
devServer
:
{
port
:
8080
,
port
:
port
,
proxy
:
{
proxy
:
{
[
'^(?!/login)'
]:
{
[
'^(?!/login)'
]:
{
target
:
'http://localhost:8081'
,
target
:
process
.
env
.
VUE_APP_BASE_API
,
ws
:
true
,
ws
:
true
,
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论