File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div
3
- id =" components-layout"
4
- @mousedown =" onMouseDown"
5
- >
2
+ <div id =" components-layout" @mousedown =" onMouseDown" >
6
3
<Search
7
4
:currentPlugin =" currentPlugin"
8
5
@changeCurrent =" changeIndex"
94
91
window .rubick .setExpendHeight (
95
92
getWindowHeight (
96
93
options .value ,
97
- (pluginLoading .value || ! config .value .perf .common .history ) ? [] : pluginHistory .value
94
+ pluginLoading .value || ! config .value .perf .common .history
95
+ ? []
96
+ : pluginHistory .value
98
97
)
99
98
);
100
99
},
@@ -161,7 +160,9 @@ const choosePlugin = (plugin) => {
161
160
});
162
161
if (hasRemove ) {
163
162
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
+ );
165
166
setPluginHistory (history );
166
167
return message .warning (' 插件已被卸载!' );
167
168
}
You can’t perform that action at this time.
0 commit comments