feat: auto import route

This commit is contained in:
vben
2020-10-16 22:03:44 +08:00
parent aca07d4ca7
commit 8a1bfdf13d
20 changed files with 528 additions and 339 deletions

View File

@@ -91,7 +91,7 @@ export default defineComponent({
});
watch(
() => currentRoute.value.path,
() => currentRoute.value.name,
(name: string) => {
name !== 'Redirect' && handleMenuChange();
getParentPath();

View File

@@ -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;
});