mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-02-02 18:28:41 +08:00
fix 菜单权限编辑
This commit is contained in:
parent
6295adbb9d
commit
42a87803dc
1
server/addons/modules/addons.go
Normal file
1
server/addons/modules/addons.go
Normal file
@ -0,0 +1 @@
|
||||
package modules
|
@ -27,6 +27,9 @@ import (
|
||||
)
|
||||
|
||||
func Init(ctx context.Context) {
|
||||
// 设置服务日志处理
|
||||
g.Log().SetHandlers(LoggingServeLogHandler)
|
||||
|
||||
_, err := g.Cfg().Get(ctx, "hotgo.debug")
|
||||
if err != nil {
|
||||
g.Log().Fatal(ctx, "配置读取异常:", err, "\r\n你确定 config/config.yaml 文件存在且格式正确吗?\r\n")
|
||||
@ -46,9 +49,6 @@ func Init(ctx context.Context) {
|
||||
// 设置缓存适配器
|
||||
cache.SetAdapter(ctx)
|
||||
|
||||
// 设置服务日志处理
|
||||
g.Log().SetHandlers(LoggingServeLogHandler)
|
||||
|
||||
// 启动服务监控
|
||||
service.AdminMonitor().StartMonitor(ctx)
|
||||
|
||||
|
@ -115,7 +115,19 @@
|
||||
<n-form-item label="根路由" path="isRoot">
|
||||
<n-radio-group v-model:value="formParams.isRoot" name="isRoot">
|
||||
<n-radio-button
|
||||
v-for="switchStatus in switchStatusMap"
|
||||
v-for="switchStatus in statusMap"
|
||||
:key="switchStatus.value"
|
||||
:value="switchStatus.value"
|
||||
:label="switchStatus.label"
|
||||
/>
|
||||
</n-radio-group>
|
||||
</n-form-item>
|
||||
</n-gi>
|
||||
<n-gi>
|
||||
<n-form-item label="页签固定" path="affix">
|
||||
<n-radio-group v-model:value="formParams.affix" name="affix">
|
||||
<n-radio-button
|
||||
v-for="switchStatus in statusMap"
|
||||
:key="switchStatus.value"
|
||||
:value="switchStatus.value"
|
||||
:label="switchStatus.label"
|
||||
@ -127,7 +139,7 @@
|
||||
<n-form-item label="简化路由" path="alwaysShow">
|
||||
<n-radio-group v-model:value="formParams.alwaysShow" name="alwaysShow">
|
||||
<n-radio-button
|
||||
v-for="switchStatus in switchStatusMap"
|
||||
v-for="switchStatus in statusMap"
|
||||
:key="switchStatus.value"
|
||||
:value="switchStatus.value"
|
||||
:label="switchStatus.label"
|
||||
@ -142,7 +154,7 @@
|
||||
<n-form-item label="缓存路由" path="keepAlive">
|
||||
<n-radio-group v-model:value="formParams.keepAlive" name="keepAlive">
|
||||
<n-radio-button
|
||||
v-for="switchStatus in switchStatusMap"
|
||||
v-for="switchStatus in statusMap"
|
||||
:key="switchStatus.value"
|
||||
:value="switchStatus.value"
|
||||
:label="switchStatus.label"
|
||||
@ -169,7 +181,7 @@
|
||||
<n-form-item label="是否外链" path="isFrame">
|
||||
<n-radio-group v-model:value="formParams.isFrame" name="isFrame">
|
||||
<n-radio-button
|
||||
v-for="switchStatus in switchStatusMap"
|
||||
v-for="switchStatus in statusMap"
|
||||
:key="switchStatus.value"
|
||||
:value="switchStatus.value"
|
||||
:label="switchStatus.label"
|
||||
|
@ -261,7 +261,19 @@
|
||||
<n-form-item label="根路由" path="isRoot">
|
||||
<n-radio-group v-model:value="formParams.isRoot" name="isRoot">
|
||||
<n-radio-button
|
||||
v-for="switchStatus in switchStatusMap"
|
||||
v-for="switchStatus in statusMap"
|
||||
:key="switchStatus.value"
|
||||
:value="switchStatus.value"
|
||||
:label="switchStatus.label"
|
||||
/>
|
||||
</n-radio-group>
|
||||
</n-form-item>
|
||||
</n-gi>
|
||||
<n-gi>
|
||||
<n-form-item label="页签固定" path="affix">
|
||||
<n-radio-group v-model:value="formParams.affix" name="affix">
|
||||
<n-radio-button
|
||||
v-for="switchStatus in statusMap"
|
||||
:key="switchStatus.value"
|
||||
:value="switchStatus.value"
|
||||
:label="switchStatus.label"
|
||||
@ -273,7 +285,7 @@
|
||||
<n-form-item label="简化路由" path="alwaysShow">
|
||||
<n-radio-group v-model:value="formParams.alwaysShow" name="alwaysShow">
|
||||
<n-radio-button
|
||||
v-for="switchStatus in switchStatusMap"
|
||||
v-for="switchStatus in statusMap"
|
||||
:key="switchStatus.value"
|
||||
:value="switchStatus.value"
|
||||
:label="switchStatus.label"
|
||||
@ -285,7 +297,7 @@
|
||||
<n-form-item label="缓存路由" path="keepAlive">
|
||||
<n-radio-group v-model:value="formParams.keepAlive" name="keepAlive">
|
||||
<n-radio-button
|
||||
v-for="switchStatus in switchStatusMap"
|
||||
v-for="switchStatus in statusMap"
|
||||
:key="switchStatus.value"
|
||||
:value="switchStatus.value"
|
||||
:label="switchStatus.label"
|
||||
@ -324,7 +336,7 @@
|
||||
<n-form-item label="是否外链" path="isFrame">
|
||||
<n-radio-group v-model:value="formParams.isFrame" name="isFrame">
|
||||
<n-radio-button
|
||||
v-for="switchStatus in switchStatusMap"
|
||||
v-for="switchStatus in statusMap"
|
||||
:key="switchStatus.value"
|
||||
:value="switchStatus.value"
|
||||
:label="switchStatus.label"
|
||||
|
Loading…
Reference in New Issue
Block a user