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

portal优化

parent 70168bcb
......@@ -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: {},
};
},
......
......@@ -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;
......
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