This commit is contained in:
手瓜一十雪
2024-11-27 12:25:37 +08:00
parent fd26d34e19
commit 788da4e4f1

View File

@@ -215,7 +215,7 @@ const addConfig = () => {
const editConfig = (item: any) => {
dialogTitle.value = '修改配置';
const type = getKeyByValue(typeCh, item.type);
const type = getKeyByValue(typeCh, item.type);
if (type) {
newTab.value = { name: item.name, data: item, type: type };
}
@@ -224,7 +224,7 @@ const editConfig = (item: any) => {
visibleBody.value = true;
};
const delConfig = (item: any) => {
const type = getKeyByValue(typeCh, item.type);
const type = getKeyByValue(typeCh, item.type);
if (type) {
newTab.value = { name: item.name, data: item, type: type };
}
@@ -364,7 +364,7 @@ const handleResize = () => {
}
loadPage.value = true;
setTimeout(() => {
cardHeight.value = window.innerHeight - (headerBox.value?.offsetHeight ?? 0) - (setting.value?.offsetHeight?? 0) - 20;
cardHeight.value = window.innerHeight - (headerBox.value?.offsetHeight ?? 0) - (setting.value?.offsetHeight ?? 0) - 20;
}, 300);
};
emitter.on('sendWidth', (width) => {