初始化模版工程

This commit is contained in:
Cloud Bot
2026-03-20 07:33:46 +00:00
commit 23717e0ecd
386 changed files with 51675 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
export function filename(path: string) {
const fileName = path.split('/').pop()
if (!fileName) return { name: '', extension: '' }
const fileNames = fileName.split('.')
const extension = fileNames.pop()
const name = fileNames.join('.')
return { name, extension }
}