Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
bd543110
Commit
bd543110
authored
Sep 11, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
环境修改
parent
f0101023
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
config.js
static/config.js
+3
-3
index.js
store/index.js
+20
-1
No files found.
static/config.js
View file @
bd543110
const
systemApi
=
{
const
systemApi
=
{
local
:
'localhost'
,
local
:
'localhost'
,
product
:
'39.100.148.168'
,
dev
:
'39.100.148.168'
,
dev
:
"49.232.68.61"
,
product
:
"49.232.68.61"
,
aps
:
'47.92.102.113'
aps
:
'47.92.102.113'
}
}
//环境切换(只修改此处):
//环境切换(只修改此处):
let
address
=
systemApi
.
product
;
let
address
=
systemApi
.
dev
;
//let address=systemApi.product;
//let address=systemApi.product;
//let address=systemApi.local;
//let address=systemApi.local;
...
...
store/index.js
View file @
bd543110
...
@@ -7,7 +7,9 @@ export const state=()=>({
...
@@ -7,7 +7,9 @@ export const state=()=>({
userInfo
:{
userInfo
:{
userId
:
0
,
userId
:
0
,
userName
:
""
userName
:
""
}
},
siteConfig
:{},
defaultConfig
:{},
})
})
export
const
getters
=
{
export
const
getters
=
{
dictionaryByKey
:
(
state
)
=>
(
key
)
=>
{
dictionaryByKey
:
(
state
)
=>
(
key
)
=>
{
...
@@ -50,6 +52,9 @@ export const mutations={
...
@@ -50,6 +52,9 @@ export const mutations={
setDictionary
(
state
,
dictionary
)
{
setDictionary
(
state
,
dictionary
)
{
state
.
dictionary
=
dictionary
;
state
.
dictionary
=
dictionary
;
},
},
setSiteConfig
(
state
,
config
){
state
.
siteConfig
=
config
;
}
}
}
export
const
actions
=
{
export
const
actions
=
{
...
@@ -71,6 +76,20 @@ export const actions={
...
@@ -71,6 +76,20 @@ export const actions={
}
}
}
}
commit
(
"setDictionary"
,
map
);
commit
(
"setDictionary"
,
map
);
},
loadSiteConfig
(){
// let params={
// pageSize:2,
// conditions:[{
// "fieldName":"key",
// "fieldValue":"a,b",
// "conditionalType":"In",
// },]
// }
// let {result} = await Api.post(`${systemUrl}/config/list`,params);
// if(result.length>1){
// conm
// }
}
}
}
}
...
...
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