🐛 修复插件市场搜索空白问题

This commit is contained in:
muwoo
2021-12-22 14:58:42 +08:00
parent 5cfaa70c67
commit dc656d3bca
15 changed files with 35 additions and 10 deletions

View File

@@ -12,6 +12,10 @@ export default ({
}) => {
const clipboardFile: any = ref([]);
const searchFocus = () => {
const config = remote.getGlobal("OP_CONFIG").get();
// 未开启自动粘贴
if (!config.perf.common.autoPast) return;
if (currentPlugin.value.name) return;
const fileList = getCopyFiles();
// 拷贝的是文件

View File

@@ -71,6 +71,7 @@ const createPluginManager = (): any => {
);
return {
...pluginInfo,
icon: pluginInfo.logo,
indexPath: commonConst.dev()
? "http://localhost:8081/#/"
: `file://${path.join(pluginPath, "../", pluginInfo.main)}`,

View File

@@ -26,5 +26,11 @@ export default function pluginClickEvent({ plugin, fe, cmd, ext, openPlugin }) {
? "http://localhost:8082/#/"
: `file://${__static}/tpl/index.html`;
}
// 插件市场
if (plugin.name === "rubick-system-feature") {
pluginDist.indexPath = commonConst.dev()
? "http://localhost:8081/#/"
: `file://${__static}/feature/index.html`;
}
openPlugin(pluginDist);
}