提交 43fa18e7 authored 作者: caicai's avatar caicai

修改简约模式

上级 c8b93249
...@@ -124,7 +124,6 @@ class cateWin { ...@@ -124,7 +124,6 @@ class cateWin {
let pList = []; let pList = [];
let baseX = Number(mainWidth) + Number(mainX); //基础偏移 let baseX = Number(mainWidth) + Number(mainX); //基础偏移
console.log(cateList)
cateList.forEach((cItem, cIndex) => { cateList.forEach((cItem, cIndex) => {
let currentWin = this.mainWindow.getWinCateOf(cItem.id); let currentWin = this.mainWindow.getWinCateOf(cItem.id);
// console.log(currentWin) // console.log(currentWin)
...@@ -147,7 +146,7 @@ class cateWin { ...@@ -147,7 +146,7 @@ class cateWin {
}); });
// 排序 // 排序
pList.sort((a, b) => parseInt(a.x) - parseInt(b.x)); pList.sort((a, b) => parseInt(a.x) - parseInt(b.x));
console.log(pList) // console.log(pList)
let offsetX = 0; let offsetX = 0;
let currentWidth = 0; let currentWidth = 0;
let len = 0; let len = 0;
...@@ -178,8 +177,8 @@ class cateWin { ...@@ -178,8 +177,8 @@ class cateWin {
// 为下一个准备的偏移 // 为下一个准备的偏移
offsetX = item.x + currentWidth + 12; offsetX = item.x + currentWidth + 12;
}) })
console.log('最终渲染') // console.log('最终渲染')
console.log(pList) // console.log(pList)
} }
/* 窗口位置,大小调整 */ /* 窗口位置,大小调整 */
......
...@@ -72,7 +72,7 @@ class category { ...@@ -72,7 +72,7 @@ class category {
// console.log('delCategory - hasIn', hasIn, id) // console.log('delCategory - hasIn', hasIn, id)
if(hasIn == -1) return null; if(hasIn == -1) return null;
if(hasIn == 0) nextId = categoryList[1].id; if(hasIn == 0 && categoryList[1]) nextId = categoryList[1].id;
categoryList.splice(hasIn,1); categoryList.splice(hasIn,1);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论