Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -685,12 +685,17 @@ func uiRootDir() string {
|
||||
return d
|
||||
}
|
||||
|
||||
candidates := []string{"../ui/dist", "./ui/dist"}
|
||||
candidates := []string{
|
||||
"../ui/dist/spa",
|
||||
"./ui/dist/spa",
|
||||
"../ui/dist",
|
||||
"./ui/dist",
|
||||
}
|
||||
for _, d := range candidates {
|
||||
if fi, err := os.Stat(d); err == nil && fi.IsDir() {
|
||||
return d
|
||||
}
|
||||
}
|
||||
|
||||
return "../ui/dist"
|
||||
return "../ui/dist/spa"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user