|
@@ -54,6 +54,12 @@ const getHandWs = () => {
|
|
|
if (listenWs.value == false) {
|
|
|
return false;
|
|
|
}
|
|
|
+ //接收百度语音token
|
|
|
+ if (e?.bdapi_token) {
|
|
|
+ console.log("e.bdapi_token", e.bdapi_token)
|
|
|
+ let tok = e.bdapi_token;
|
|
|
+ localStorage.setItem('tok', tok);
|
|
|
+ }
|
|
|
//获取信息
|
|
|
if (e?.data?.token) {
|
|
|
//保存token
|
|
@@ -61,15 +67,9 @@ const getHandWs = () => {
|
|
|
localStorage.setItem("token", token);
|
|
|
let deviceid = e?.data?.deviceid;
|
|
|
localStorage.setItem("deviceid", deviceid);
|
|
|
- //跳转
|
|
|
- router.push({ path: '/gesture' });
|
|
|
getUserInfo();
|
|
|
- }
|
|
|
- //接收百度语音token
|
|
|
- if (e?.bdapi_token) {
|
|
|
- console.log("e.bdapi_token", e.bdapi_token)
|
|
|
- let tok = e.bdapi_token;
|
|
|
- localStorage.setItem('tok', tok);
|
|
|
+ //刷新
|
|
|
+ window.location.reload()
|
|
|
}
|
|
|
});
|
|
|
};
|