提交 cd9ef4a6 authored 作者: caicai's avatar caicai

修复bug

上级 e854999b
...@@ -75,7 +75,7 @@ class category { ...@@ -75,7 +75,7 @@ class category {
let hasIn = categoryList.findIndex(v => v.id == id); let hasIn = categoryList.findIndex(v => v.id == id);
let nextId = null; let nextId = null;
// console.log('delCategory - hasIn', hasIn, id) console.log('delCategory - hasIn', hasIn, id, nextId)
if(hasIn == -1) return null; if(hasIn == -1) return null;
if(hasIn == 0 && categoryList[1] != undefined) nextId = categoryList[1].id; if(hasIn == 0 && categoryList[1] != undefined) nextId = categoryList[1].id;
...@@ -85,7 +85,7 @@ class category { ...@@ -85,7 +85,7 @@ class category {
// 分类 id // 分类 id
//根据分类重新渲染 //根据分类重新渲染
console.log('删除分类') console.log('删除分类')
if(hasIn == 0 && categoryList[1]) { if(hasIn == 0 && nextId) {
this.cateWinPlugin.delCateIdWin(nextId); this.cateWinPlugin.delCateIdWin(nextId);
if(this.store.get("currentMode")==="modeJianYue") this.cateWinPlugin.resizeAndCreate({categoryList}); if(this.store.get("currentMode")==="modeJianYue") this.cateWinPlugin.resizeAndCreate({categoryList});
}else { }else {
......
...@@ -192,6 +192,7 @@ export default { ...@@ -192,6 +192,7 @@ export default {
align-items: center; align-items: center;
// justify-content: center; // justify-content: center;
// flex: 1; // flex: 1;
overflow: hidden;
} }
.right_app { .right_app {
display: flex; display: flex;
......
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
categoryList:[], categoryList:[],
mode: "modeJiJian", //modeJianYue、modeUXue mode: "modeJiJian", //modeJianYue、modeUXue
showManage:false, showManage:false,
secondAcitveIndex:1, //U学模式,当前选中 secondAcitveIndex:0, //U学模式,当前选中
}; };
}, },
computed: { computed: {
...@@ -85,9 +85,11 @@ export default { ...@@ -85,9 +85,11 @@ export default {
let addWidth = (length-4)*161; let addWidth = (length-4)*161;
this.categoryList = list; this.categoryList = list;
if(this.mode === "modeUXue") { if(this.mode === "modeUXue") {
// console.log('更改宽度', addWidth + Number(process.env.VUE_APP_UXueModeW))
this.ipcRenderer.send("setSize",{ this.ipcRenderer.send("setSize",{
width: addWidth + Number(process.env.VUE_APP_UXueModeW) width: (addWidth > 0 ? addWidth : 0) + Number(process.env.VUE_APP_UXueModeW)
}) });
// this.secondAcitveIndex = 0;
return; return;
} }
}, },
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论