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

修复bug

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