Skip to content

Commit

Permalink
🔨 fix #377
Browse files Browse the repository at this point in the history
  • Loading branch information
layyback committed Jul 18, 2024
2 parents ef34452 + 286d9da commit 0578c7c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/renderer/App.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<template>
<div
id="components-layout"
@mousedown="onMouseDown"
>
<div id="components-layout" @mousedown="onMouseDown">
<Search
:currentPlugin="currentPlugin"
@changeCurrent="changeIndex"
Expand Down Expand Up @@ -94,7 +91,9 @@ watch(
window.rubick.setExpendHeight(
getWindowHeight(
options.value,
(pluginLoading.value || !config.value.perf.common.history) ? [] : pluginHistory.value
pluginLoading.value || !config.value.perf.common.history
? []
: pluginHistory.value
)
);
},
Expand Down Expand Up @@ -161,7 +160,9 @@ const choosePlugin = (plugin) => {
});
if (hasRemove) {
const result = window.rubick.db.get(PLUGIN_HISTORY) || {};
const history = result.data.filter(item => item.originName !== currentChoose.originName);
const history = result.data.filter(
(item) => item.originName !== currentChoose.originName
);
setPluginHistory(history);
return message.warning('插件已被卸载!');
}
Expand Down

0 comments on commit 0578c7c

Please sign in to comment.