mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2025-04-21 07:50:19 +08:00
feat: add dialog to manage data
This commit is contained in:
@ -72,6 +72,14 @@ const readData = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
const deleteData = async (uid, action) => {
|
||||
const data = dataMap.get(uid)
|
||||
if (data) {
|
||||
data.deleted = action
|
||||
await saveData(data)
|
||||
}
|
||||
}
|
||||
|
||||
const changeCurrent = async (uid) => {
|
||||
config.current = uid
|
||||
await config.save()
|
||||
@ -513,3 +521,4 @@ exports.getData = () => {
|
||||
}
|
||||
|
||||
exports.getUrl = getUrl
|
||||
exports.deleteData = deleteData
|
||||
|
Reference in New Issue
Block a user