refator: change sendSync to send

This commit is contained in:
buqiyuan 2022-06-08 15:41:05 +08:00
parent 74351cc673
commit a62c0e6059

View File

@ -150,12 +150,12 @@ window.eo.getModuleSettings = (moduleID) => {
// 注册单个mock路由
window.eo.registerMockRoute = ({ method, path, data }) => {
return ipcRenderer.sendSync('eo-sync', { action: 'registerMockRoute', data: { method, path, data } });
return ipcRenderer.send('eo-sync', { action: 'registerMockRoute', data: { method, path, data } });
};
// 注销mock路由
window.eo.unRegisterMockRoute = ({ method, path }) => {
return ipcRenderer.sendSync('eo-sync', { action: 'unRegisterMockRoute', data: { method, path } });
return ipcRenderer.send('eo-sync', { action: 'unRegisterMockRoute', data: { method, path } });
};
// 获取mock服务地址
window.eo.getMockUrl = () => {