admin后台actionbar不显示
baolang00 opened this issue · comments
在windows下运行,model里有l10n.Locale字段的功能,比如product,size这种,admin里后台里这个条都不显示,控制台还报错,大概是\themes\publish2\actions\9.publish2.tmpl: reflect: call of reflect.Value.Interface on zero Value,或者Get error when render action \actions\9.action.tmpl: reflect: call of reflect.Value.Interface on zero Value。但是linux下运行可以显示。请问有遇见过这种问题吗?
Windows 10 专业版
// before files have higher priority
for _, actionFile := range actionFiles {
actionFile = filepath.ToSlash(actionFile) // from \ to /
base := regexp.MustCompile("^\\d+\\.").ReplaceAllString(path.Base(actionFile), "")
if _, ok := actions[base]; !ok {
actionKeys = append(actionKeys, path.Base(actionFile))
actions[base] = actionFile
}
}