mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
feat: Fix dropdown menu bug in dev.js and build.js
This commit is contained in:
1 parent
1192f18de6
commit
73bafc988a
10 files changed
+95
-91
No files matched your search
@@ -111,7 +111,6 @@ async function runBuild() {
|
||||
choices: Object.keys(projects).map((name) => ({
|
||||
title: name,
|
||||
value: name,
|
||||
description: projects[name],
|
||||
})),
|
||||
initial: 0,
|
||||
});
|
||||
|
||||
@@ -85,7 +85,6 @@ async function develop(name) {
|
||||
choices: Object.keys(projects).map((name) => ({
|
||||
title: name,
|
||||
value: name,
|
||||
description: projects[name],
|
||||
})),
|
||||
initial: 0,
|
||||
});
|
||||
|
||||
@@ -16,6 +16,7 @@ export function formatDate(date) {
|
||||
export function getProjects() {
|
||||
return glob
|
||||
.sync('packages/*')
|
||||
.sort()
|
||||
.filter((item) => !item.endsWith('artplayer-template') && !item.endsWith('artplayer-vitepress'))
|
||||
.reduce((result, item) => {
|
||||
const name = item.split(/\/|\\/g).pop();
|
||||
|
||||
Reference in new issue
Block a user