引入tailwindcss,图标换回svg
This commit is contained in:
@@ -51,13 +51,13 @@ export default {
|
||||
*/
|
||||
async start() {
|
||||
try {
|
||||
console.log('signalR-1', this.SR.state)
|
||||
console.debug('signalR-1', this.SR.state)
|
||||
//使用async和await 或 promise的then 和catch 处理来自服务端的异常
|
||||
if (this.SR.state === signalR.HubConnectionState.Disconnected) {
|
||||
await this.SR.start()
|
||||
}
|
||||
|
||||
console.log('signalR-2', this.SR.state)
|
||||
console.debug('signalR-2', this.SR.state)
|
||||
return true
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
|
||||
Reference in New Issue
Block a user