mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 03:09:14 +08:00
fix: uploadMetadata
This commit is contained in:
parent
49d1b5cbea
commit
e9909d0a24
@ -9,7 +9,7 @@ import { safeParseString } from "~/utils"
|
|||||||
|
|
||||||
export async function uploadMetadata(metadata: PrimitiveMetadata) {
|
export async function uploadMetadata(metadata: PrimitiveMetadata) {
|
||||||
if (!__ENABLE_LOGIN__) return
|
if (!__ENABLE_LOGIN__) return
|
||||||
const jwt = localStorage.getItem("jwt")
|
const jwt = safeParseString(localStorage.getItem("jwt"))
|
||||||
if (!jwt) return
|
if (!jwt) return
|
||||||
try {
|
try {
|
||||||
await ofetch("/api/me/sync", {
|
await ofetch("/api/me/sync", {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user