智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LightingSystemApp-serial/.svn/pristine/d7/d774641d44b11dbad2dfec3d930...

28 lines
497 B

3 years ago
import {
invoke
} from 'uni-core/service/bridge'
import {
getCurrentPageId
} from '../../platform'
UniServiceJSBridge.subscribe('onLoadFontFaceCallback', ({
callbackId,
data
}) => {
invoke(callbackId, data)
})
export function loadFontFace (options, callbackId) {
const pageId = getCurrentPageId()
if (!pageId) {
return {
errMsg: 'loadFontFace:fail not font page'
}
}
UniServiceJSBridge.publishHandler('loadFontFace', {
options,
callbackId
}, pageId)
}