mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 19:29:04 +08:00
feat: auto import route
This commit is contained in:
@@ -91,7 +91,7 @@ export default defineComponent({
|
||||
});
|
||||
|
||||
watch(
|
||||
() => currentRoute.value.path,
|
||||
() => currentRoute.value.name,
|
||||
(name: string) => {
|
||||
name !== 'Redirect' && handleMenuChange();
|
||||
getParentPath();
|
||||
|
@@ -48,7 +48,9 @@ export default function (expandedParentClass = '', x = false) {
|
||||
if (expandedParentClass && el._parent) {
|
||||
el._parent.classList.add(expandedParentClass);
|
||||
}
|
||||
|
||||
console.log('======================');
|
||||
console.log(sizeProperty, offset);
|
||||
console.log('======================');
|
||||
requestAnimationFrame(() => {
|
||||
el.style[sizeProperty] = offset;
|
||||
});
|
||||
|
Reference in New Issue
Block a user