Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import Controller from 'react-router-controller'; import LayoutComponent from '../view/layout/main'; export default class MainController extends Controller { LayoutComponent = LayoutComponent; indexView(params, { i18n: { t } }) { return this.render( { title: t('主页'), breadcrumbs: [], }, params ); } aboutView(params, { i18n: { t } }) { if (!this.checkParams(params, ['id'])) { return false; } return this.render( { title: t('关于'), breadcrumbs: [ { link: `/main/about/id/${params.id}`, label: t('关于'), }, ], }, params ); } } |