We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8765640 commit 6f4441aCopy full SHA for 6f4441a
src/install.ts
@@ -66,6 +66,9 @@ export const install: Install<Router | PluginOptions> = (
66
context = { ..._context, app }
67
return context
68
}
69
+ vue.$addMiddlewareContext = (key: string, value: any) => {
70
+ context = { [key]: value, ...context }
71
+ }
72
vue.$updateMiddlewareContext = (key: string, value: any) => {
73
if (key === 'app') {
74
throw new BasePluginError(
0 commit comments