调整后台模板和js、css文件位置
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
// adminTemplatePath 后台单页模板(含 {{define}} 分块,按权限渲染)
|
||||
const adminTemplatePath = "./static/admin/index.html"
|
||||
const adminTemplatePath = "./templates/admin/index.html"
|
||||
|
||||
// AdminPageData 后台页面模板数据
|
||||
type AdminPageData struct {
|
||||
@@ -54,7 +54,7 @@ func menuPageSet(menus []AdminMenuGroup) map[string]bool {
|
||||
|
||||
// AdminLoginView 独立登录页
|
||||
func AdminLoginView(c *gin.Context) {
|
||||
c.File("./static/admin/login.html")
|
||||
c.File("./templates/admin/login.html")
|
||||
}
|
||||
|
||||
// AdminView 后台管理页面:校验登录态后按角色用模板渲染菜单与页面框架
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>后台管理 - GoBlog</title>
|
||||
<link rel="icon" href="/static/images/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="/static/admin/style.css?v=3">
|
||||
<link rel="stylesheet" href="/static/css/adminstyle.css?v=3">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
@@ -50,8 +50,8 @@
|
||||
{{if index .PageSet "users"}}{{template "admin_modal_user" .}}{{end}}
|
||||
{{if index .PageSet "themes"}}{{template "admin_modal_theme" .}}{{end}}
|
||||
|
||||
<script>window.__currentUser = {{.CurrentUser | json}};</script>
|
||||
<script src="/static/admin/app.js?v=21"></script>
|
||||
<script>window.__currentUser = {{.CurrentUser }}</script>
|
||||
<script src="/static/js/admin.js?v=21"></script>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>登录 - GoBlog 后台管理</title>
|
||||
<link rel="icon" href="/static/images/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="/static/admin/style.css?v=3">
|
||||
<link rel="stylesheet" href="/static/css/adminstyle.css?v=3">
|
||||
</head>
|
||||
<body>
|
||||
<div id="login-page">
|
||||
Reference in New Issue
Block a user