Skip to content

Commit 01058f1

Browse files
committed
chore: wip
1 parent d8dc2bd commit 01058f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

context.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,10 @@ func (p *Context) InitTemplate(ctx *Context) error {
632632
func (p *Context) getTemplate(ctx *Context) (interface{}, error) {
633633
var templateInstance interface{}
634634
for _, provider := range p.Engine.providers {
635+
// 启动模版
636+
provider.(interface {
637+
Bootstrap() interface{}
638+
}).Bootstrap()
635639

636640
// 模版参数初始化
637641
provider.(interface {

examples/hertzadmin/biz/handler/resources/demo.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ type Demo struct {
1111

1212
// 初始化
1313
func (p *Demo) Init(ctx *quark.Context) interface{} {
14-
15-
// 初始化模板
16-
p.LoadInitData(ctx)
17-
1814
return p
1915
}
2016

0 commit comments

Comments
 (0)