Skip to content

Commit 0578c7c

Browse files
committed
🔨 fix #377
2 parents ef34452 + 286d9da commit 0578c7c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/renderer/App.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<div
3-
id="components-layout"
4-
@mousedown="onMouseDown"
5-
>
2+
<div id="components-layout" @mousedown="onMouseDown">
63
<Search
74
:currentPlugin="currentPlugin"
85
@changeCurrent="changeIndex"
@@ -94,7 +91,9 @@ watch(
9491
window.rubick.setExpendHeight(
9592
getWindowHeight(
9693
options.value,
97-
(pluginLoading.value || !config.value.perf.common.history) ? [] : pluginHistory.value
94+
pluginLoading.value || !config.value.perf.common.history
95+
? []
96+
: pluginHistory.value
9897
)
9998
);
10099
},
@@ -161,7 +160,9 @@ const choosePlugin = (plugin) => {
161160
});
162161
if (hasRemove) {
163162
const result = window.rubick.db.get(PLUGIN_HISTORY) || {};
164-
const history = result.data.filter(item => item.originName !== currentChoose.originName);
163+
const history = result.data.filter(
164+
(item) => item.originName !== currentChoose.originName
165+
);
165166
setPluginHistory(history);
166167
return message.warning('插件已被卸载!');
167168
}

0 commit comments

Comments
 (0)