[1078] 增加设置电话本

This commit is contained in:
lin
2025-07-23 20:58:23 +08:00
parent a69e3d5dde
commit 4cc399ce39
7 changed files with 248 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ import {
queryRecordList,
reset,
sendTextMessage,
setConfig,
setConfig, setPhoneBook,
startPlayback,
stopPlay,
stopPlayback,
@@ -342,6 +342,16 @@ const actions = {
reject(error)
})
})
},
setPhoneBook({ commit }, data) {
return new Promise((resolve, reject) => {
setPhoneBook(data).then(response => {
const { data } = response
resolve(data)
}).catch(error => {
reject(error)
})
})
}
}