mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-02 12:48:30 +00:00
fix: register
This commit is contained in:
@@ -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 || '';
|
||||
|
Reference in New Issue
Block a user