支持插件自动更新

This commit is contained in:
muwoo 2023-03-28 10:41:01 +08:00
parent 57781e7b5a
commit 2341d75533
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "rubick", "name": "rubick",
"version": "2.1.3", "version": "2.1.4",
"author": "muwoo <2424880409@qq.com>", "author": "muwoo <2424880409@qq.com>",
"private": true, "private": true,
"scripts": { "scripts": {

View File

@ -39,6 +39,7 @@ const createPluginManager = (): any => {
// 自带的插件不需要检测更新 // 自带的插件不需要检测更新
if (plugin.name === 'rubick-system-feature') return; if (plugin.name === 'rubick-system-feature') return;
await pluginInstance.upgrade(plugin.name); await pluginInstance.upgrade(plugin.name);
state.pluginLoading = false;
}; };
const openPlugin = async (plugin) => { const openPlugin = async (plugin) => {