Commit 699d0d42 authored by 黄奎's avatar 黄奎

js修改

parent c25ef27e
......@@ -32,7 +32,7 @@ export function initChatroomSDK ({ state, commit, dispatch }, obj) {
onerror: function onChatroomError (error, obj) {
dispatch('hideLoading')
if (error) {
alert('网络连接状态异常')
console.log('网络连接状态异常')
location.href = '#/room'
}
},
......
......@@ -42,11 +42,11 @@ export function initNimSDK ({ state, commit, dispatch }, loginInfo) {
},
onerror: function onError (event) {
// alert(JSON.stringify(event))
console('网络连接状态异常')
console.log('网络连接状态异常')
//location.href = config.loginUrl
},
onwillreconnect: function onWillReconnect () {
console('网络连接状态异常')
console.log('网络连接状态异常')
},
ondisconnect: function onDisconnect (error) {
switch (error.code) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment