From 5bb3839b1bdd4efe144447381c51e3198108ccf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E6=B6=9B?= Date: Fri, 10 Oct 2025 20:33:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../icons/drawable-xxhdpi/vip_expired.png | Bin 2235 -> 0 bytes src/pages/NoteEditorPage.vue | 473 ++++++++++++------ src/pages/NoteEditorPage_old.vue | 174 +++++++ 3 files changed, 482 insertions(+), 165 deletions(-) delete mode 100644 public/assets/icons/drawable-xxhdpi/vip_expired.png create mode 100644 src/pages/NoteEditorPage_old.vue diff --git a/public/assets/icons/drawable-xxhdpi/vip_expired.png b/public/assets/icons/drawable-xxhdpi/vip_expired.png deleted file mode 100644 index fed7125183023d0223f16e98eae79f35ceed6c69..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2235 zcmV;s2t@aZP)jk@h{d!(lskP(BzYhRdU0nl{ zxp42^y~08A<%1SXgCFK{x$t>tC!5huaq=lcYonv1ux%^$PD+WFFJHlEd0>z{FetK84|78~q*6ABC{}IT zMs6qvFwehLP`r8b*34i!eJPvCGzb;c-rinRE7j4TeRz=`EiNwn&qL91oIDGAZDeGm z0fNaQrNpaO|9}U5;hy6Z4h)Kp<76Di$-kKuq=(sT7Iw-8i2S`Hz&|Mj6$Hz+kE@6J1ObNOy}%@VegPNzXkAZGtyC=>)h?Omh|07t)f6wG4AxqJ6~x4dR&KbdFH z!{MXDhbZTUEvJ9p=1EStW_4G&#AdGaLE=`=jg!}iV&r1px< zpqTNL`R=_lr|TwD2xx8a?dG?5y|q;&(0z;X>GX8%xE;sIu-$VBFf&8hY<^&1;Efdi z_3PKzEPYo5aQoJc8~3AYvwM1e1)^VP)0s>rlYub?N~v(}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P}8+{y7_1nI(|b8>i&|%bzP9K7xpcfWl=$Pak1qG0#>4P=L{sSFT(+(Eo@Wmcw#b4$J>v`8Ub|re$EK8FT;u002ov JPDHLkV1i{;E4lyx diff --git a/src/pages/NoteEditorPage.vue b/src/pages/NoteEditorPage.vue index 3299c13..ac0192e 100644 --- a/src/pages/NoteEditorPage.vue +++ b/src/pages/NoteEditorPage.vue @@ -1,174 +1,317 @@ - -const props = defineProps({ - noteId: { - type: String, - default: null - } -}); - -const store = useAppStore(); - -// 加载初始数据 -onMounted(() => { - store.loadData(); -}); - -// Check if we're editing an existing note -const isEditing = !!props.noteId; -const existingNote = isEditing ? store.notes.find(n => n.id === props.noteId) : null; - -// Initialize state with existing note data or empty strings -const title = ref(existingNote?.title || ''); -const content = ref(existingNote?.content || ''); -const showAlert = ref(false); - -const handleSave = async () => { - // Validate input - if (!title.value.trim()) { - // In a full implementation, show an alert or toast - console.log('Validation error: Please enter a note title.'); - return; - } - - try { - if (isEditing && existingNote) { - // Update existing note - await store.updateNote(props.noteId, { title: title.value, content: content.value }); - } else { - // Create new note - await store.addNote({ title: title.value, content: content.value, isStarred: false }); + diff --git a/src/pages/NoteEditorPage_old.vue b/src/pages/NoteEditorPage_old.vue new file mode 100644 index 0000000..3299c13 --- /dev/null +++ b/src/pages/NoteEditorPage_old.vue @@ -0,0 +1,174 @@ + + + \ No newline at end of file