进入uniapp
This commit is contained in:
2
im-uniapp/common/imSdk/lim-sdk.js
Normal file
2
im-uniapp/common/imSdk/lim-sdk.js
Normal file
File diff suppressed because one or more lines are too long
1
im-uniapp/common/imSdk/lim-sdk.js.map
Normal file
1
im-uniapp/common/imSdk/lim-sdk.js.map
Normal file
File diff suppressed because one or more lines are too long
17
im-uniapp/common/imSdk/sdk-bridge.js
Normal file
17
im-uniapp/common/imSdk/sdk-bridge.js
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
function getIM(){
|
||||
// UNIAPP 环境
|
||||
if(typeof uni !== 'undefined'){
|
||||
return {im:uni['im'], im_webtoolkit:uni['im_webtoolkit']};
|
||||
}
|
||||
throw Error(" Couldn't not fetch lim.");
|
||||
}
|
||||
|
||||
|
||||
const lim = {
|
||||
im: getIM().im,
|
||||
};
|
||||
|
||||
export default {
|
||||
lim
|
||||
}
|
||||
Reference in New Issue
Block a user