Skip to content

Commit c39484c

Browse files
author
cg33
authored
Merge pull request #3 from Julyyq/master
implement GetJS,GetCSS,GetCallbacks method
2 parents 5616b2c + 52e21c7 commit c39484c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

login/login.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
template2 "github.com/GoAdminGroup/go-admin/template"
1616
"github.com/GoAdminGroup/go-admin/template/login"
1717
"github.com/dchest/captcha"
18+
"github.com/GoAdminGroup/go-admin/template/types"
1819
)
1920

2021
var themes = map[string]Theme{
@@ -130,6 +131,9 @@ func (l *Login) GetAssetList() []string { return themes[l.Theme].G
130131
func (l *Login) GetAsset(name string) ([]byte, error) { return themes[l.Theme].GetAsset(name[1:]) }
131132
func (l *Login) GetName() string { return "login" }
132133
func (l *Login) IsAPage() bool { return true }
134+
func (l *Login) GetJS() template.JS { return "" }
135+
func (l *Login) GetCSS() template.CSS { return "" }
136+
func (l *Login) GetCallbacks() types.Callbacks { return make(types.Callbacks, 0) }
133137

134138
func (l *Login) GetContent() template.HTML {
135139
buffer := new(bytes.Buffer)

0 commit comments

Comments
 (0)