react can use middleware in this way
const store = createStore(
reducer,
applyMiddleware(thunk, promise, logger)
);
applyMiddleware (thunk, promise, logger) specifies the order of middleware, and then proceeds to the next step through next ()
vue doesn"t seem to have this function except router? Please let me know