mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-23 01:40:29 +08:00
初步实现安装界面
This commit is contained in:
18
internal/setup/utils.go
Normal file
18
internal/setup/utils.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package setup
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/configs"
|
||||
)
|
||||
|
||||
var isConfigured bool
|
||||
|
||||
// 判断系统是否已经配置过
|
||||
func IsConfigured() bool {
|
||||
if isConfigured {
|
||||
return true
|
||||
}
|
||||
|
||||
_, err := configs.LoadAPIConfig()
|
||||
isConfigured = err == nil
|
||||
return isConfigured
|
||||
}
|
||||
Reference in New Issue
Block a user