|
@@ -3,6 +3,9 @@ import {getSiteInfo,getSiteCategory,selectWebsiteDepartment,selectWebsiteArea,ge
|
|
|
|
|
|
import { Message } from 'element-ui';
|
|
|
|
|
|
+import Vue from 'vue';
|
|
|
+
|
|
|
+
|
|
|
const state = {
|
|
|
|
|
|
editWebsiteId: "",
|
|
@@ -140,9 +143,13 @@ const mutations = {
|
|
|
let module = JSON.parse(JSON.stringify(state.pageData.index[id]));
|
|
|
module.content.componentList[sort].component_style = num;
|
|
|
|
|
|
- state.pageData.index[id] = module;
|
|
|
+
|
|
|
+
|
|
|
+ Vue.set(state.pageData.index, id, module);
|
|
|
console.log("当前的板块数据为:");
|
|
|
console.log(state.pageData.index);
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
|