Compare commits
2 Commits
9ce3bbf118
...
b475bee7ed
| Author | SHA1 | Date | |
|---|---|---|---|
| b475bee7ed | |||
| a556139b68 |
1
ruoyi-ui/.gitignore
vendored
1
ruoyi-ui/.gitignore
vendored
@@ -19,5 +19,4 @@ selenium-debug.log
|
|||||||
*.sln
|
*.sln
|
||||||
*.local
|
*.local
|
||||||
|
|
||||||
package-lock.json
|
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
|||||||
36949
ruoyi-ui/package-lock.json
generated
Normal file
36949
ruoyi-ui/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -42,7 +42,7 @@
|
|||||||
"@handsontable/vue": "^15.3.0",
|
"@handsontable/vue": "^15.3.0",
|
||||||
"@jiaminghi/data-view": "^2.10.0",
|
"@jiaminghi/data-view": "^2.10.0",
|
||||||
"@micro-zoe/micro-app": "^1.0.0-rc.26",
|
"@micro-zoe/micro-app": "^1.0.0-rc.26",
|
||||||
"@openim/wasm-client-sdk": "^3.8.3",
|
"@openim/wasm-client-sdk": "3.8.3",
|
||||||
"@riophae/vue-treeselect": "0.4.0",
|
"@riophae/vue-treeselect": "0.4.0",
|
||||||
"@vue-office/docx": "^1.6.3",
|
"@vue-office/docx": "^1.6.3",
|
||||||
"@vue-office/excel": "^1.7.14",
|
"@vue-office/excel": "^1.7.14",
|
||||||
|
|||||||
@@ -24,6 +24,11 @@ class ImClient {
|
|||||||
if (this.loginPromise) return this.loginPromise
|
if (this.loginPromise) return this.loginPromise
|
||||||
|
|
||||||
if (!this.sdk) {
|
if (!this.sdk) {
|
||||||
|
// 兜底:某些时机下 wasm 会先调 window.commonEventFunc 再被 SDK 覆盖,
|
||||||
|
// 提前挂一个空 stub 避免 "window.commonEventFunc is not a function"
|
||||||
|
if (typeof window !== 'undefined' && typeof window.commonEventFunc !== 'function') {
|
||||||
|
window.commonEventFunc = function () {}
|
||||||
|
}
|
||||||
this.sdk = getSDK({ coreWasmPath: '/openIM.wasm', debug: false })
|
this.sdk = getSDK({ coreWasmPath: '/openIM.wasm', debug: false })
|
||||||
this._wireEvents()
|
this._wireEvents()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user