调整文字

main
old易 2024-10-10 17:22:29 +08:00
parent 965e80ab03
commit 9e338b789f
1 changed files with 6 additions and 4 deletions

View File

@ -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;
}
});