adata-ui 3.1.74 → 3.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -16,7 +16,10 @@ onMounted(() => {
|
|
|
16
16
|
const isActive = computed(() => {
|
|
17
17
|
if (!props.to) return false;
|
|
18
18
|
const url = new URL(props.to);
|
|
19
|
-
|
|
19
|
+
const currentLocalePath = route.path.split("/")[1];
|
|
20
|
+
const currentPath = route.path.replace(`/${currentLocalePath}`, "") || "/";
|
|
21
|
+
const urlPath = url.pathname.replace(`/${currentLocalePath}`, "") || "/";
|
|
22
|
+
return url.hostname === hostname.value && urlPath === currentPath;
|
|
20
23
|
});
|
|
21
24
|
</script>
|
|
22
25
|
|