调整文字
parent
965e80ab03
commit
9e338b789f
|
|
@ -143,8 +143,10 @@ export default {
|
|||
|
||||
// 3. Initialize SignalR client
|
||||
const connection = new signalR.HubConnectionBuilder()
|
||||
.withUrl('https://api.sso.ycymedu.com/hubs/wechat?usercode=' + state.usercode) // Replace with your SignalR hub URL
|
||||
.configureLogging(signalR.LogLevel.Information) // Optional: Configure logging
|
||||
.withServerTimeout(30000)
|
||||
.withAutomaticReconnect()
|
||||
.withUrl('https://api.sso.ycymedu.com/hubs/wechat?usercode=' + state.usercode) // Replace with your SignalR hub URL
|
||||
.configureLogging(signalR.LogLevel.Information) // Optional: Configure logging
|
||||
.build();
|
||||
|
||||
// 4. Handle connection events
|
||||
|
|
@ -166,12 +168,12 @@ export default {
|
|||
}
|
||||
if (message.status == 1)//开始扫码登录
|
||||
{
|
||||
scanError.value = '开始扫码中...'
|
||||
scanError.value = '已扫码等待授权...'
|
||||
} if (message.status == 2)//授权成功
|
||||
{
|
||||
scanError.value = '授权成功'
|
||||
console.log('baseurl:', referer.value + message.baseurl);
|
||||
// window.location.href = referer + message.baseurl;
|
||||
window.location.href = referer.value + message.baseurl;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue