|
@@ -12,6 +12,7 @@ import moment from 'moment'
|
|
|
import vRegion from 'v-region'
|
|
|
import echarts from "echarts";
|
|
|
import Http from '@/js/http.js'
|
|
|
+import {configToJson} from './utils/filters'
|
|
|
import {
|
|
|
Avatar,
|
|
|
Alert,
|
|
@@ -209,13 +210,11 @@ Vue.config.productionTip = false
|
|
|
|
|
|
|
|
|
Http.get('/api/common/configuration').then((res) => {
|
|
|
- this.homeDataNoCache = res.data;
|
|
|
- // console.log(res.data.configurationList.configuration);
|
|
|
- // console.log(JSON.parse(res.data.configurationList.configuration));
|
|
|
- // console.log(JSON.parse(res.data.configurationList.configuration).home_searchTypeArr);
|
|
|
- let config = JSON.parse(res.data.configurationList.configuration);
|
|
|
- setConfig(config);
|
|
|
- storageSave('config', config);
|
|
|
+ let config = res.data&&res.data.configurationList;
|
|
|
+ let configData = configToJson(config);
|
|
|
+ this.homeDataNoCache = configToJson(config);
|
|
|
+ setConfig(configData);
|
|
|
+ storageSave('config', configData);
|
|
|
new Vue({
|
|
|
el: '#app',
|
|
|
router,
|