-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
16 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* @Author X.Mo<[email protected]> | ||
* @Link https://github.com/mineadmin | ||
*/ | ||
import type { Router, RouteRecordRaw } from 'vue-router' | ||
import type { Router } from 'vue-router' | ||
import { useProTableRenderPlugin } from '@mineadmin/pro-table' | ||
import type { MineToolbarExpose, Plugin } from '#/global' | ||
import Message from 'vue-m-message' | ||
|
@@ -54,8 +54,10 @@ const pluginConfig: Plugin.PluginConfig = { | |
routesRaw, router, | ||
) | ||
}, | ||
routerRedirect: (route: RouteRecordRaw) => { | ||
console.log('demo 插件的路由跳转钩子,此次跳转路由信息:', route) | ||
routerRedirect: (routes, router: Router) => { | ||
router.getRoutes() | ||
console.log('demo 插件的路由跳转钩子,此次跳转旧路由信息:', routes.oldRoute) | ||
console.log('demo 插件的路由跳转钩子,此次跳转新路由信息:', routes.newRoute) | ||
}, | ||
networkRequest: (request) => { | ||
console.log('demo 插件的网络请求钩子,此次请求信息:', request) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters