diff --git a/entrypoints/popup/Popup.vue b/entrypoints/popup/Popup.vue index f911617..98e44c1 100644 --- a/entrypoints/popup/Popup.vue +++ b/entrypoints/popup/Popup.vue @@ -67,7 +67,7 @@ fetch(`http://localhost:${port.value}/status`).then((res) => { }) -const save2TiddlyWiki = async (title: string, text: string, port: string) => { +const save2TiddlyWiki = async (title: string, text: string, port: string, url: string) => { if (!status.value.tiddlywiki_version) { ElMessage({ message: '请先连接 TiddlyWiki', @@ -85,6 +85,7 @@ const save2TiddlyWiki = async (title: string, text: string, port: string) => { body: JSON.stringify({ text, creator: username.value, type: 'text/markdown', + url, created: dayjs(new Date()).utc().format('YYYYMMDDHHmmss') }) }).then((res) => { @@ -97,8 +98,6 @@ const save2TiddlyWiki = async (title: string, text: string, port: string) => { }) } - -