Merge pull request #105 from 7heMech/patch-1

Fix duplicates on edit
This commit is contained in:
面条 2025-02-08 20:18:30 +08:00 committed by GitHub
commit dbba560750
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 6 deletions

View file

@ -6,20 +6,25 @@
<img
src="https://trendshift.io/api/badge/repositories/10421"
alt="ccbikai/Sink | Trendshift"
style="width: 250px; height: 55px;"
width="250"
height="55"
/>
</a>
<a href="https://news.ycombinator.com/item?id=40843683">
<a href="https://news.ycombinator.com/item?id=40843683" target="_blank">
<img
src="https://hackernews-badge.vercel.app/api?id=40843683"
alt="Featured on Hacker News"
style="width: 250px; height: 55px;"
width="250"
height="55"
/>
</a>
<a href="https://www.uneed.best/tool/sink" target="_blank">
<img
src="https://www.uneed.best/POTW1.png"
alt="Uneed Badge"
height="55"
/>
</a>
![Cloudflare](https://img.shields.io/badge/Cloudflare-F69652?style=flat&logo=cloudflare&logoColor=white)
![Nuxt](https://img.shields.io/badge/Nuxt-00DC82?style=flat&logo=nuxtdotjs&logoColor=white)
@ -123,5 +128,5 @@ We welcome your contributions and PRs.
## ☕ Sponsor
1. [Follow Me on X(Twitter)](https://x.com/0xKaiBi).
1. [Follow Me on X(Twitter)](https://404.li/kai).
2. [Become a sponsor to on GitHub](https://github.com/sponsors/ccbikai).

View file

@ -114,7 +114,7 @@ async function onSubmit(formData) {
body: link,
})
dialogOpen.value = false
emit('update:link', newLink)
emit('update:link', newLink, 'edit')
if (isEdit) {
toast('Link updated successfully')
}

View file

@ -1,7 +1,7 @@
{
"name": "sink",
"type": "module",
"version": "0.1.7",
"version": "0.1.8",
"private": true,
"packageManager": "pnpm@9.15.1",
"engines": {