Commit 7180ee9f by 无尘

fix: 修改自定义模板

parent b10d2954
......@@ -219,7 +219,6 @@ export default {
that.isDragging = false;
that.selectKey = '';
that.selectKey = evt.clone.dataset.name;
console.log(evt.clone.dataset)
// 判断中间是否已经添加
that.tempaletDataList.forEach(function(ele, index) {
if (ele.name == that.selectKey) {
......
......@@ -84,7 +84,7 @@ export default {
status: !!that.setData.status ? '1' : '0',
time: that.setData.time
};
postRequest('/haoban-app-daily-web/daily/get-setting', para)
postRequest('/haoban-app-daily-web/daily/create-setting', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -112,8 +112,8 @@ export default {
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.setData.status = !!resData.status ? true : false;
that.setData.time = resData.time;
that.setData.status = resData.result.status == 1 ? true : false;
that.setData.time = resData.result.time;
return;
}
errMsg.errorMsg(resData);
......@@ -130,13 +130,14 @@ export default {
brandId: function(newData, oldData) {
const that = this;
that.activeBrand = newData;
that.getData();
}
},
mounted() {
let that = this;
document.documentElement.style.backgroundColor = '#f0f2f5';
that.$emit('showTab', '22');
that.getData();
// that.getData();
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
......
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