mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-20 08:58:41 +00:00
延迟响应inspect
This commit is contained in:
parent
da552e9945
commit
110045b348
@ -114,9 +114,9 @@ export class Inspector extends InjectEvent {
|
|||||||
}
|
}
|
||||||
const funArray = getCallbacks(node, data.code, true);
|
const funArray = getCallbacks(node, data.code, true);
|
||||||
if (funArray && funArray.length && data.index < funArray.length) {
|
if (funArray && funArray.length && data.index < funArray.length) {
|
||||||
const fn = funArray[data.index];
|
const item = funArray[data.index];
|
||||||
this.target = fn.fn;
|
this.target = item.fn;
|
||||||
if (!fn) {
|
if (!item) {
|
||||||
debugger;
|
debugger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,9 @@ export default defineComponent({
|
|||||||
if (data) {
|
if (data) {
|
||||||
function doInspect(type: ShowCode, index: number) {
|
function doInspect(type: ShowCode, index: number) {
|
||||||
bridge.send(Msg.RequestOpenNodeTouchFuntion, { uuid: data.id, code: type, index } as RequestOpenNodeTouchFuntionData);
|
bridge.send(Msg.RequestOpenNodeTouchFuntion, { uuid: data.id, code: type, index } as RequestOpenNodeTouchFuntionData);
|
||||||
|
setTimeout(() => {
|
||||||
chrome.devtools.inspectedWindow.eval(`DoInspect()`);
|
chrome.devtools.inspectedWindow.eval(`DoInspect()`);
|
||||||
|
}, 5);
|
||||||
}
|
}
|
||||||
function hintCode(type: ShowCode, cbArray: FunctionInfo[], event: MouseEvent) {
|
function hintCode(type: ShowCode, cbArray: FunctionInfo[], event: MouseEvent) {
|
||||||
if (cbArray.length === 1) {
|
if (cbArray.length === 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user