diff --git a/admin/src/views/system/system/environment.vue b/admin/src/views/system/system/environment.vue index fbe2c3c..836bd71 100644 --- a/admin/src/views/system/system/environment.vue +++ b/admin/src/views/system/system/environment.vue @@ -123,7 +123,7 @@ import { systemInfo } from '@/api/setting/system' defineOptions({ name: 'environment' }) -const loading = ref(false) +const loading = ref(true) const result = ref>({}) const ips = computed(() => { return Object.keys(result.value) @@ -144,7 +144,7 @@ const info = computed(() => { const getSystemInfo = async () => { try { - loading.value = true + // loading.value = true const data = await systemInfo() result.value = data || {} if (activeIp.value == '' && ips.value.length > 0) { diff --git a/server/app/controller/admin_ctl/monitorController/monitor.go b/server/app/controller/admin_ctl/monitorController/monitor.go index 87682c4..40b2db3 100644 --- a/server/app/controller/admin_ctl/monitorController/monitor.go +++ b/server/app/controller/admin_ctl/monitorController/monitor.go @@ -14,8 +14,8 @@ func RegisterRoute(rg *gin.RouterGroup) { handle := monitorHandler{} rg = rg.Group("/monitor", middleware.TokenAuth()) - rg.GET("/cache", middleware.RecordLog("缓存监控"), handle.cache) - rg.GET("/server", middleware.RecordLog("服务监控"), handle.server) + rg.GET("/cache", handle.cache) + rg.GET("/server", handle.server) } type monitorHandler struct{} diff --git a/server/app/controller/admin_ctl/systemController/role.go b/server/app/controller/admin_ctl/systemController/role.go index 58456e5..ab2ffb0 100644 --- a/server/app/controller/admin_ctl/systemController/role.go +++ b/server/app/controller/admin_ctl/systemController/role.go @@ -19,7 +19,7 @@ func RoleRoute(rg *gin.RouterGroup) { rg = rg.Group("/system", middleware.TokenAuth()) // rg.GET("/role/all", handle.All) - rg.GET("/role/list", middleware.RecordLog("角色列表"), handle.List) + rg.GET("/role/list", handle.List) rg.GET("/role/detail", middleware.RecordLog("角色详情"), handle.Detail) rg.POST("/role/add", middleware.RecordLog("角色新增"), handle.Add) rg.POST("/role/edit", middleware.RecordLog("角色编辑"), handle.Edit)