mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-11 21:06:08 +08:00
fix: Fix the abnormal display of system upgrade loading (#8154)
This commit is contained in:
parent
80a0afc135
commit
e9e425038c
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue