fix: register

This commit is contained in:
archer
2023-07-22 22:28:46 +08:00
parent 323953462b
commit 8151350d9f
6 changed files with 33 additions and 9 deletions

View File

@@ -114,6 +114,9 @@ export const voiceBroadcast = ({ text }: { text: string }) => {
cancel: () => window.speechSynthesis?.cancel()
};
};
export const cancelBroadcast = () => {
window.speechSynthesis?.cancel();
};
export const getErrText = (err: any, def = '') => {
const msg: string = typeof err === 'string' ? err : err?.message || def || '';