修改项目整体风格

This commit is contained in:
zyj
2025-11-21 17:20:59 +08:00
parent 6b2d5e9bf0
commit 006051c226
18 changed files with 4891 additions and 1257 deletions

12
app.go
View File

@@ -6,6 +6,7 @@ import (
"go-site-clone/services"
"go-site-clone/utils"
"net/url"
"os"
"os/exec"
"path/filepath"
@@ -124,3 +125,14 @@ func (a *App) OpenSiteFileDir(pathDir string) bool {
}
return true
}
func (a *App) DeleteSiteFileDir(pathDir string) bool {
appConfig, _ := config.LoadConfig()
newPath := filepath.Join(appConfig.SiteFileDir, pathDir)
err := os.RemoveAll(newPath)
if err != nil {
fmt.Println("删除文件夹失败:", err)
return false
}
return true
}