fix: 重构新建项目逻辑,选定文件夹即项目
- 移除 prompt() 及 InputDialog 组件依赖 - 选定文件夹直接创建 .web2app 项目结构 - 默认以文件夹名作为项目名称 - 在编辑器中可自由修改名称、版本、图标、入口等配置 - 增强导入资源入口的文案提示
This commit is contained in:
@@ -111,8 +111,8 @@ ipcMain.handle('dir:readTree', async (_event, dirPath) => {
|
||||
return readDirectoryTree(dirPath)
|
||||
})
|
||||
|
||||
ipcMain.handle('project:create', async (_event, name, dir) => {
|
||||
return createProject(name, dir)
|
||||
ipcMain.handle('project:create', async (_event, projectPath) => {
|
||||
return createProject(projectPath)
|
||||
})
|
||||
|
||||
ipcMain.handle('project:load', async (_event, projectPath) => {
|
||||
|
||||
Reference in New Issue
Block a user