Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
sgaqgl-vue
Commits
b792e935
Commit
b792e935
authored
Nov 21, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
aa46bdb9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
1 deletion
+19
-1
.env.production
.env.production
+3
-0
package.json
package.json
+1
-0
common.js
src/api/common/common.js
+9
-0
Logo.vue
src/layout/components/Sidebar/Logo.vue
+3
-0
permission.js
src/store/modules/permission.js
+2
-0
vue.config.js
vue.config.js
+1
-1
No files found.
.env.production
View file @
b792e935
...
@@ -6,3 +6,6 @@ ENV = 'production'
...
@@ -6,3 +6,6 @@ ENV = 'production'
# 陕钢安全管理/生产环境
# 陕钢安全管理/生产环境
VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = '/dev-api'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
\ No newline at end of file
package.json
View file @
b792e935
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
"scripts"
:
{
"scripts"
:
{
"clear"
:
"rmdir /s/q node_modules"
,
"clear"
:
"rmdir /s/q node_modules"
,
"serve"
:
"node init && vue-cli-service serve"
,
"serve"
:
"node init && vue-cli-service serve"
,
"devbuild"
:
"vue-cli-service build --mode development"
,
"build"
:
"vue-cli-service build"
,
"build"
:
"vue-cli-service build"
,
"build:report"
:
"vue-cli-service build --report"
,
"build:report"
:
"vue-cli-service build --report"
,
"build:stage"
:
"vue-cli-service build --mode staging"
,
"build:stage"
:
"vue-cli-service build --mode staging"
,
...
...
src/api/common/common.js
View file @
b792e935
...
@@ -18,3 +18,12 @@ export function initBm(query) {
...
@@ -18,3 +18,12 @@ export function initBm(query) {
data
:
query
||
{}
data
:
query
||
{}
})
})
}
}
/* 系统初始接口 */
export
function
systeminfo
(
query
)
{
return
request
({
url
:
'/sgaq/systeminfo'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/layout/components/Sidebar/Logo.vue
View file @
b792e935
...
@@ -33,6 +33,9 @@ export default {
...
@@ -33,6 +33,9 @@ export default {
return
this
.
$store
.
state
.
settings
.
sideTheme
return
this
.
$store
.
state
.
settings
.
sideTheme
}
}
},
},
mounted
(){
this
.
title
=
localStorage
.
getItem
(
'appName'
)
},
data
()
{
data
()
{
return
{
return
{
title
:
'陕钢安全管理系统'
,
title
:
'陕钢安全管理系统'
,
...
...
src/store/modules/permission.js
View file @
b792e935
...
@@ -78,6 +78,8 @@ const permission = {
...
@@ -78,6 +78,8 @@ const permission = {
// 向后端请求路由数据
// 向后端请求路由数据
getRouters
({}).
then
(
res
=>
{
getRouters
({}).
then
(
res
=>
{
let
appName
=
res
.
data
.
appName
||
''
localStorage
.
setItem
(
'appName'
,
appName
)
let
menus
=
res
.
data
.
menu
let
menus
=
res
.
data
.
menu
let
asymenus
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
.
menu
))
let
asymenus
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
.
menu
))
/* 权限路由*/
/* 权限路由*/
...
...
vue.config.js
View file @
b792e935
...
@@ -35,7 +35,7 @@ module.exports = {
...
@@ -35,7 +35,7 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://192.168.30.254:18080/dmg`,
// target: `http://192.168.30.254:18080/dmg`,
target
:
`http://localhost:9080/sgaq`
,
target
:
`http://localhost:9080/sgaq`
,
...
...
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