mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-20 08:03:55 +08:00
fix: Fix the abnormal display of system upgrade loading (#8154)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package hook
|
||||
|
||||
import (
|
||||
"github.com/1Panel-dev/1Panel/core/app/service"
|
||||
"strings"
|
||||
|
||||
"github.com/1Panel-dev/1Panel/core/app/repo"
|
||||
"github.com/1Panel-dev/1Panel/core/app/service"
|
||||
"github.com/1Panel-dev/1Panel/core/constant"
|
||||
"github.com/1Panel-dev/1Panel/core/global"
|
||||
"github.com/1Panel-dev/1Panel/core/utils/cmd"
|
||||
|
||||
@@ -218,12 +218,12 @@ func Routers() *gin.Engine {
|
||||
if global.CONF.Base.IsDemo {
|
||||
Router.Use(middleware.DemoHandle())
|
||||
}
|
||||
Router.Use(middleware.GlobalLoading())
|
||||
Router.Use(Proxy())
|
||||
|
||||
PrivateGroup := Router.Group("/api/v2/core")
|
||||
PrivateGroup.Use(middleware.WhiteAllow())
|
||||
PrivateGroup.Use(middleware.BindDomain())
|
||||
PrivateGroup.Use(middleware.GlobalLoading())
|
||||
PrivateGroup.Use(middleware.SetPasswordPublicKey())
|
||||
for _, router := range rou.RouterGroupApp {
|
||||
router.InitRouter(PrivateGroup)
|
||||
|
||||
@@ -65,7 +65,7 @@ export const UpdateTerminalInfo = (param: Setting.TerminalInfo) => {
|
||||
return http.post(`/core/settings/terminal/update`, param);
|
||||
};
|
||||
export const getSystemAvailable = () => {
|
||||
return http.get(`/settings/search/available`);
|
||||
return http.get(`/core/settings/search/available`);
|
||||
};
|
||||
export const updateSetting = (param: Setting.SettingUpdate) => {
|
||||
return http.post(`/core/settings/update`, param);
|
||||
|
||||
Reference in New Issue
Block a user