ref: 功能优化

This commit is contained in:
muwoo 2021-06-21 10:38:18 +08:00
parent 0d6872d12b
commit 1e77613565
3 changed files with 4 additions and 1 deletions

View File

@ -39,6 +39,8 @@
:src="item.icon" :src="item.icon"
/> />
</a-list-item-meta> </a-list-item-meta>
<a-tag v-show="item.type === 'dev'">开发者</a-tag>
<a-tag v-show="item.type === 'system'">系统</a-tag>
</a-list-item> </a-list-item>
</a-list> </a-list>
</div> </div>

View File

@ -60,7 +60,7 @@ function downloadFunc(downloadRepoUrl, name) {
await process.execSync(`rm -rf ${temp_dest}`); await process.execSync(`rm -rf ${temp_dest}`);
} }
download(targetGit, temp_dest, function (err) { download(targetGit, temp_dest, {clone: true}, function (err) {
console.log(err ? 'Error' : 'Success') console.log(err ? 'Error' : 'Success')
if (err) { if (err) {
console.log(err); console.log(err);

View File

@ -181,6 +181,7 @@ const actions = {
value: 'plugin', value: 'plugin',
icon: 'image://' + path.join(plugin.sourceFile, `../${plugin.logo}`), icon: 'image://' + path.join(plugin.sourceFile, `../${plugin.logo}`),
desc: fe.explain, desc: fe.explain,
type: plugin.type,
click: (router) => { click: (router) => {
actions.openPlugin({commit}, {cmd, plugin, feature: fe, router}); actions.openPlugin({commit}, {cmd, plugin, feature: fe, router});
} }