mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 Improve create workspace interaction https://github.com/siyuan-note/siyuan/issues/8700
This commit is contained in:
parent
b795f403b6
commit
a9ad143521
1 changed files with 10 additions and 2 deletions
|
|
@ -64,8 +64,16 @@ func checkWorkspaceDir(c *gin.Context) {
|
||||||
|
|
||||||
var existsConf, existsData bool
|
var existsConf, existsData bool
|
||||||
for _, entry := range entries {
|
for _, entry := range entries {
|
||||||
existsConf = "conf" == entry.Name() && entry.IsDir()
|
if !existsConf {
|
||||||
existsData = "data" == entry.Name() && entry.IsDir()
|
existsConf = "conf" == entry.Name() && entry.IsDir()
|
||||||
|
}
|
||||||
|
if !existsData {
|
||||||
|
existsData = "data" == entry.Name() && entry.IsDir()
|
||||||
|
}
|
||||||
|
|
||||||
|
if existsConf && existsData {
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if existsConf {
|
if existsConf {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue