Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
6c4224fe
Commit
6c4224fe
authored
Nov 25, 2022
by
蒋凌峰
😉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
60d747c1
Pipeline
#69
failed with stages
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
ruoyi-admin/src/main/resources/application.yml
ruoyi-admin/src/main/resources/application.yml
+7
-7
ruoyi-ui/src/router/index.js
ruoyi-ui/src/router/index.js
+1
-1
ruoyi-ui/src/store/modules/permission.js
ruoyi-ui/src/store/modules/permission.js
+1
-1
ruoyi-ui/vue.config.js
ruoyi-ui/vue.config.js
+1
-2
No files found.
ruoyi-admin/src/main/resources/application.yml
View file @
6c4224fe
...
...
@@ -9,7 +9,7 @@ ruoyi:
# 实例演示开关
demoEnabled
:
true
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
profile
:
D:
/ruoyi/uploadPath
profile
:
/home
/ruoyi/uploadPath
# 获取ip地址开关
addressEnabled
:
false
# 验证码类型 math 数组计算 char 字符验证
...
...
ruoyi-ui/src/router/index.js
View file @
6c4224fe
...
...
@@ -171,7 +171,7 @@ Router.prototype.push = function push(location) {
}
export
default
new
Router
({
mode
:
'
history
'
,
//
去掉url中的#
mode
:
'
history
'
,
//
scrollBehavior
:
()
=>
({
y
:
0
}),
routes
:
constantRoutes
})
ruoyi-ui/src/store/modules/permission.js
View file @
6c4224fe
...
...
@@ -122,7 +122,7 @@ export function filterDynamicRoutes(routes) {
}
export
const
loadView
=
(
view
)
=>
{
if
(
process
.
env
.
NODE_ENV
===
'
development
'
)
{
if
(
process
.
env
.
NODE_ENV
===
'
development
'
||
process
.
env
.
NODE_ENV
===
'
production
'
)
{
return
(
resolve
)
=>
require
([
`@/views/
${
view
}
`
],
resolve
)
}
else
{
// 使用 import 实现生产环境的路由懒加载
...
...
ruoyi-ui/vue.config.js
View file @
6c4224fe
...
...
@@ -10,7 +10,6 @@ const CompressionPlugin = require('compression-webpack-plugin')
const
name
=
process
.
env
.
VUE_APP_TITLE
||
'
DBR财务中心
'
// 网页标题
const
port
=
process
.
env
.
port
||
process
.
env
.
npm_config_port
||
80
// 端口
// vue.config.js 配置说明
//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
// 这里只列一部分,具体配置参考文档
...
...
@@ -18,7 +17,7 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
publicPath
:
process
.
env
.
NODE_ENV
===
"
production
"
?
"
/
"
:
"
/
"
,
publicPath
:
"
/
"
,
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
outputDir
:
'
dist
'
,
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment