Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
app.go('/app/')}>{this.props.site_title}
const click = (to) => () => app.go(to)
return last ? <span>{route.breadcrumbName}</span> : <a>{route.breadcrumbName}</a>
const PreviewBtn = () => <button>app.go('/show')} icon="eye">预览</button>
onAdd: () => app.go(`/app/model/${model.name}/add`),
onSaved: () => (history && history.length > 1) && history.back() || app.go(`/app/model/${model.name}/list`),
onBack: () => (history && history.length > 1) && history.back() || app.go(`/app/model/${model.name}/list`),
onEdit: (id) => app.go(`/app/model/${model.name}/${encodeURIComponent(id || props.id)}/edit`)