mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-02 11:47:57 +08:00
refator: change sendSync to send
This commit is contained in:
parent
74351cc673
commit
a62c0e6059
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user