mirror of
https://github.com/rubickCenter/rubick
synced 2025-07-14 02:33:26 +08:00
🔨 fix #377
This commit is contained in:
commit
0578c7c7eb
@ -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('插件已被卸载!');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user