🐛 Bug fixes

This commit is contained in:
LittleSheep 2024-03-31 18:26:24 +08:00
parent ff9f9b574b
commit 5e2c6e6c3b
3 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 75 KiB

View File

@ -59,12 +59,12 @@ export const useNotifications = defineStore("notifications", () => {
if (Capacitor.getPlatform() === "web") {
new Notification(data["subject"], {
body: data["subject"]
body: data["content"]
})
} else {
LocalNotifications.schedule({
notifications: [
{ id: data["id"], title: data["subject"], body: data["subject"] }
{ id: data["id"], title: data["subject"], body: data["content"] }
]
}).then((res) => console.log(res))
}