op1
This commit is contained in:
@@ -107,8 +107,8 @@ const handleSave = async () => {
|
||||
|
||||
const handleSync = async () => {
|
||||
try {
|
||||
await store.syncEssentials()
|
||||
showToast('清单同步成功')
|
||||
const result = await store.syncEssentials()
|
||||
showToast(result.message, result.status === 'updated' ? 'success' : 'error')
|
||||
} catch (err) {
|
||||
showToast('同步失败,请检查网络或地址', 'error')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user