diff --git a/README.md b/README.md index 1a635cd..13c8e3d 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ We welcome your contributions and PRs. - Bind the variable name `ANALYTICS` to the `sink` dataset. 7. Redeploy the project. +8. Update code, refer to the official GitHub documentation [Syncing a fork branch from the web UI](https://docs.github.com/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork#syncing-a-fork-branch-from-the-web-ui). ## ⚒️ Configuration diff --git a/components/dashboard/Nav.vue b/components/dashboard/Nav.vue index 2c1fa5d..814eec0 100644 --- a/components/dashboard/Nav.vue +++ b/components/dashboard/Nav.vue @@ -3,7 +3,7 @@ const route = useRoute() diff --git a/components/dashboard/links/Editor.vue b/components/dashboard/links/Editor.vue index d4eeddd..4f7fb3b 100644 --- a/components/dashboard/links/Editor.vue +++ b/components/dashboard/links/Editor.vue @@ -102,12 +102,10 @@ onMounted(() => { } }) -const { caseSensitive } = useRuntimeConfig() - async function onSubmit(formData) { const link = { url: formData.url, - slug: caseSensitive ? formData.slug : formData.slug.toLowerCase(), + slug: formData.slug, ...(formData.optional || []), expiration: formData.optional?.expiration ? date2unix(formData.optional?.expiration, 'end') : undefined, } diff --git a/components/dashboard/links/Index.vue b/components/dashboard/links/Index.vue index 35b6611..1ae1edf 100644 --- a/components/dashboard/links/Index.vue +++ b/components/dashboard/links/Index.vue @@ -42,9 +42,12 @@ function updateLinkList(link, type) {