Commit 541247d8 authored by 周远喜's avatar 周远喜

portal优化

parent 70168bcb
...@@ -136,12 +136,13 @@ ...@@ -136,12 +136,13 @@
</template> </template>
<script> <script>
//import config from "~/libs/config"; import config from "~/libs/config";
export default { export default {
name: "", name: "",
data() { data() {
return { return {
config: this.$store.state.siteConfig, // config: this.$store.state.siteConfig,
config:config,
rules: {}, rules: {},
}; };
}, },
......
...@@ -59,10 +59,13 @@ export const mutations = { ...@@ -59,10 +59,13 @@ export const mutations = {
state.dictionary = dictionary; state.dictionary = dictionary;
}, },
setSiteConfig(state, config) { setSiteConfig(state, config) {
console.warn(config);
state.siteConfig = JSON.parse(config); state.siteConfig = JSON.parse(config);
// state.siteConfig = config;
}, },
setDefaultConfig(state, config) { setDefaultConfig(state, config) {
state.defaultConfig =JSON.parse(config); state.defaultConfig = config;
// state.defaultConfig =JSON.parse(config);
}, },
setConfigId(state, id) { setConfigId(state, id) {
state.configId =id; state.configId =id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment