diff --git a/router/view.go b/router/view.go
index 0cc2773..a4dfbd8 100644
--- a/router/view.go
+++ b/router/view.go
@@ -16,6 +16,7 @@ func InitViewRouter(engine *gin.Engine) {
engine.GET("/chat_main", middleware.JwtPageMiddleware, tmpl.PageChatMain)
engine.GET("/setting", tmpl.PageSetting)
engine.GET("/setting_statistics", tmpl.PageSettingStatis)
+ engine.GET("/setting_indexpage", tmpl.PageSettingIndexPage)
engine.GET("/setting_mysql", tmpl.PageSettingMysql)
engine.GET("/setting_welcome", tmpl.PageSettingWelcome)
engine.GET("/setting_deploy", tmpl.PageSettingDeploy)
diff --git a/static/html/setting_bottom.html b/static/html/setting_bottom.html
index 4e53195..001786f 100644
--- a/static/html/setting_bottom.html
+++ b/static/html/setting_bottom.html
@@ -83,6 +83,9 @@
path:"",
},
statistics:{},
+ pageindex: {
+ titlecn: "",
+ },
},
methods: {
//提交表单
diff --git a/static/html/setting_left.html b/static/html/setting_left.html
index 327ec96..c6a7fef 100644
--- a/static/html/setting_left.html
+++ b/static/html/setting_left.html
@@ -1,4 +1,7 @@
{{define "setting_left"}}
+
设置imap
设置登陆账号
设置mysql
+ 编辑首页
配置参数
IP黑名单
网页部署
diff --git a/tmpl/setting.go b/tmpl/setting.go
index 4073945..816cfb8 100644
--- a/tmpl/setting.go
+++ b/tmpl/setting.go
@@ -84,3 +84,11 @@ func PageConfig(c *gin.Context) {
"action": "setting_config",
})
}
+
+//配置项编辑首页
+func PageSettingIndexPage(c *gin.Context) {
+ c.HTML(http.StatusOK, "setting_pageindex.html", gin.H{
+ "tab_index": "4-7",
+ "action": "setting_pageindex",
+ })
+}