| | |
| | | |
| | | useTemplate = (template) => { |
| | | const { type, editMenu } = this.state |
| | | |
| | | // 选择模板:添加菜单时 |
| | | if (type === 'add') { |
| | | this.setState({ |
| | |
| | | src: '', |
| | | text: '', |
| | | type: template.type, |
| | | PageParam: {OpenType: "newtab", Template: template.type}, |
| | | PageParam: {OpenType: 'newtab', Template: template.type}, |
| | | LongParam: '', |
| | | ParentID: this.props.supMenu.MenuID |
| | | } |
| | | }) |
| | | } else { |
| | | let _PageParam = {OpenType: editMenu.PageParam.OpenType, Template: template.type} |
| | | let _PageParam = {OpenType: editMenu.PageParam.OpenType || 'newtab', Template: template.type} |
| | | |
| | | this.setState({ |
| | | tabview: template.type, |