import Magix from 'magix' import * as View from '../../../view' Magix.applyStyle('@./create-header.less') export default View.extend({ tmpl: '@create-header.html', init(options) { this.options = options this.updater.set({ createDialog: options.createDialog }) }, render() { this.updater.digest(this.options.params) // $('#topHeader').html('
') }, 'return'(e) { if (this.options.params.returnPath) { Magix.Router.to(this.options.params.returnPath) } else { window.history.go(-1) } } })