mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
16 lines
471 B
JavaScript
16 lines
471 B
JavaScript
import React from 'react';
|
|
import { createDevTools } from 'redux-devtools';
|
|
import LogMonitor from 'redux-devtools-log-monitor';
|
|
import DockMonitor from 'redux-devtools-dock-monitor';
|
|
const DockMonitorD = DockMonitor.default // 这里有 bug 不知道为啥非要使用 default
|
|
|
|
export default createDevTools(
|
|
<DockMonitorD
|
|
toggleVisibilityKey="ctrl-h"
|
|
changePositionKey="ctrl-q"
|
|
defaultIsVisible={false}
|
|
>
|
|
<LogMonitor.default />
|
|
</DockMonitorD>
|
|
);
|