Vue.js
- 5 ответов
- 0 вопросов
3
Вклад в тег
{
path: '/document',
component: { template: '<router-view></router-view>' },
meta: { title: 'Документация' },
children: [
{
name: 'document-index',
path: '',
component: DocumentIndex,
meta: { title: 'Вся документация' },
},
{
name: 'document-create',
path: 'create',
component: DocumentCreate,
meta: { title: 'Добавить документ' },
},
{
name: 'document-update',
path: 'update/:id',
component: DocumentUpdate,
meta: { title: 'Редактировать документ' },
},
],
},
<router-link :to="{name: 'document-index'}">
Table::find() ->where(['id' =>$ids])->orderBy(['fieldName' => SORT_ASC|SORT_DESC])->all();