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
541247d8
Commit
541247d8
authored
Nov 03, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portal优化
parent
70168bcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
index.vue
pages/system/config/index.vue
+3
-2
index.js
store/index.js
+4
-1
No files found.
pages/system/config/index.vue
View file @
541247d8
...
...
@@ -136,12 +136,13 @@
</
template
>
<
script
>
//
import config from "~/libs/config";
import
config
from
"~/libs/config"
;
export
default
{
name
:
""
,
data
()
{
return
{
config
:
this
.
$store
.
state
.
siteConfig
,
// config: this.$store.state.siteConfig,
config
:
config
,
rules
:
{},
};
},
...
...
store/index.js
View file @
541247d8
...
...
@@ -59,10 +59,13 @@ export const mutations = {
state
.
dictionary
=
dictionary
;
},
setSiteConfig
(
state
,
config
)
{
console
.
warn
(
config
);
state
.
siteConfig
=
JSON
.
parse
(
config
);
// state.siteConfig = config;
},
setDefaultConfig
(
state
,
config
)
{
state
.
defaultConfig
=
JSON
.
parse
(
config
);
state
.
defaultConfig
=
config
;
// state.defaultConfig =JSON.parse(config);
},
setConfigId
(
state
,
id
)
{
state
.
configId
=
id
;
...
...
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