D
Size: a a a
D
А
D
D
А
V💊
D
V💊
D
А
А
BO
D
V💊
BO
V💊
R
А
А
, async fetch () {и 2 плагина
this.items = await this.$api('controller_name', 'index');
...
inject('api', async (controller, method, params) => {
return await context.$axios['$' + (params ? 'post' : 'get')]('/api/' + controller + '/' + method, params);
...
inject('api', async (controller, method, params) => {
...
let api = require('~/api/' + controller);
let result = await api[method](db, params);
...
BO