art-template icon indicating copy to clipboard operation
art-template copied to clipboard

{{ set变量 }}后没法在继承页面中使用?有没有什么办法呢

Open 79229788 opened this issue 5 years ago • 0 comments

①login.art
{{ set notLogin = true }}
{{ extend './layout/layout.art' }}
.....

①layout.art
{{ if !notLogin }} ....  {{ /if }}

例如上面代码,在layout.art中去用notLogin居然发现notLogin为undefined,而login.art页面可以正常获取到notLogin,因为刚从swig迁移过来(swig是支持的),突然发现了这个问题,好尴尬

79229788 avatar Feb 01 '20 11:02 79229788