routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// Utilities
|
||||
import { nextTick, watch } from 'vue';
|
||||
|
||||
// Types
|
||||
|
||||
export function useSelectLink(link, select) {
|
||||
watch(() => link.isActive?.value, isActive => {
|
||||
if (link.isLink.value && isActive != null && select) {
|
||||
nextTick(() => {
|
||||
select(isActive);
|
||||
});
|
||||
}
|
||||
}, {
|
||||
immediate: true
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=selectLink.js.map
|
||||
Reference in New Issue
Block a user