📝 Migrate docs

This commit is contained in:
2024-09-28 15:10:43 +08:00
parent fe0fffada2
commit 1ccb9e738e
11 changed files with 163 additions and 19 deletions

View File

@ -33,6 +33,7 @@
<v-divider class="border-opacity-50 my-1" />
<v-list density="compact" nav color="primary">
<v-list-item title="Knowledge Base" prepend-icon="mdi-library" to="/docs" exact />
<v-list-item title="Developer Portal" prepend-icon="mdi-code-tags" to="/dev" exact />
<v-list-item title="Creator Hub" prepend-icon="mdi-pencil" to="/creator" exact />
</v-list>

View File

@ -74,7 +74,7 @@ const route = useRoute()
const navNotRoot = computed(() => route.path.split("/").length > 2)
const navQuery = computed(() => ({
where: {
_path: new RegExp("^\\" + route.path + ".*"),
_path: new RegExp("^\\" + route.path + "\\/[^\\/]+\\/?$"),
_locale: getLocale(locale),
},
}))