refactor(i18n): ♻️ 加强基础国际化
This commit is contained in:
@@ -26,15 +26,8 @@ const type = computed(() => {
|
||||
});
|
||||
|
||||
const linkProps = (to: string) => {
|
||||
if (isExternalLink.value) {
|
||||
return {
|
||||
href: to,
|
||||
target: "_blank",
|
||||
rel: "noopener noreferrer",
|
||||
};
|
||||
}
|
||||
return {
|
||||
to: to,
|
||||
};
|
||||
return isExternalLink.value
|
||||
? { href: to, target: "_blank", rel: "noopener noreferrer" }
|
||||
: { to };
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user