MM
Size: a a a
MM
АН
MM
MR
MR
204 No Content
R
MR
MR
my
async fetchAllData( { commit }, param ) {
...
commit( 'UPDATE_DATA', data );
}
port allData from './middleware/allData'xport default async function guest ({ next, store, to }){
import store from "./store/modules/general.js";
router.beforeEach( async ( to, from, next ) => {
const middleware = allData;
const context = {
to,
from,
next,
store
}
return middleware({ ...context });
});
сам middleware
e
в ответ получаю "Ошибка загрузки данных TypeError: commit is not a function"MG
async fetchAllData( { commit }, param ) {
...
commit( 'UPDATE_DATA', data );
}
port allData from './middleware/allData'xport default async function guest ({ next, store, to }){
import store from "./store/modules/general.js";
router.beforeEach( async ( to, from, next ) => {
const middleware = allData;
const context = {
to,
from,
next,
store
}
return middleware({ ...context });
});
сам middleware
e
в ответ получаю "Ошибка загрузки данных TypeError: commit is not a function"s
async fetchAllData( { commit }, param ) {
...
commit( 'UPDATE_DATA', data );
}
port allData from './middleware/allData'xport default async function guest ({ next, store, to }){
import store from "./store/modules/general.js";
router.beforeEach( async ( to, from, next ) => {
const middleware = allData;
const context = {
to,
from,
next,
store
}
return middleware({ ...context });
});
сам middleware
e
в ответ получаю "Ошибка загрузки данных TypeError: commit is not a function"my
my
MG
JD
my
my
JD
s
ВГ
204 No Content