mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
feat: add tags
This commit is contained in:
@@ -60,11 +60,11 @@ export default defineComponent({
|
||||
() => getBreadcrumb()
|
||||
);
|
||||
|
||||
const pathCompile = (path: string): string | Object => {
|
||||
const { params } = route;
|
||||
var toPath = pathToRegexp.compile(path);
|
||||
return toPath(params);
|
||||
};
|
||||
// const pathCompile = (path: string): string | Object => {
|
||||
// const { params } = route;
|
||||
// var toPath = pathToRegexp.compile(path);
|
||||
// return toPath(params);
|
||||
// };
|
||||
|
||||
const handleLink = (item: RouteLocationMatched): any => {
|
||||
const { redirect, path } = item;
|
||||
@@ -72,7 +72,7 @@ export default defineComponent({
|
||||
router.push(redirect.toString());
|
||||
return;
|
||||
}
|
||||
router.push(pathCompile(path));
|
||||
router.push(path);
|
||||
};
|
||||
|
||||
return { levelList, handleLink };
|
||||
|
||||
Reference in New Issue
Block a user