qtweb_bridge
v0.0.1
Published
在前端中与Qt客户端建立联系
Downloads
50
Maintainers
Readme
qtweb_bridge
Install
$ npm install qtweb_bridge
how to use
import { STATE, sendSyncMsg } from 'qtweb_bridge';
const _onFetchData = async () => {
const res = await sendSyncMsg(
'接口名',
{
...参数
},
'接口context',
);
if (res?.status === STATE.SUCCESS) {
} else {
}
};
useEffect(() => {
_onFetchData();
}, []);
LICENSE
MIT