This commit is contained in:
layyback 2024-07-18 17:41:30 +08:00
commit 0578c7c7eb

View File

@ -1,8 +1,5 @@
<template> <template>
<div <div id="components-layout" @mousedown="onMouseDown">
id="components-layout"
@mousedown="onMouseDown"
>
<Search <Search
:currentPlugin="currentPlugin" :currentPlugin="currentPlugin"
@changeCurrent="changeIndex" @changeCurrent="changeIndex"
@ -94,7 +91,9 @@ watch(
window.rubick.setExpendHeight( window.rubick.setExpendHeight(
getWindowHeight( getWindowHeight(
options.value, options.value,
(pluginLoading.value || !config.value.perf.common.history) ? [] : pluginHistory.value pluginLoading.value || !config.value.perf.common.history
? []
: pluginHistory.value
) )
); );
}, },
@ -161,7 +160,9 @@ const choosePlugin = (plugin) => {
}); });
if (hasRemove) { if (hasRemove) {
const result = window.rubick.db.get(PLUGIN_HISTORY) || {}; 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); setPluginHistory(history);
return message.warning('插件已被卸载!'); return message.warning('插件已被卸载!');
} }