mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-16 07:01:03 +00:00
chrome bug fix
This commit is contained in:
parent
1a84202c02
commit
527327eb14
@ -90,7 +90,7 @@ export enum Msg {
|
||||
RequestLogData = "request-log-data",
|
||||
|
||||
RequestSetProperty = "request-set-property",
|
||||
ResponseSetProperty = "update-property",
|
||||
ResponseSetProperty = "response-set-property",
|
||||
}
|
||||
|
||||
export class PluginEvent {
|
||||
|
@ -30,7 +30,7 @@ class Bridge implements TestClient {
|
||||
const data = PluginEvent.create(event);
|
||||
console.log(...this.terminal.chunkMessage(data.toChunk()));
|
||||
if (data.valid && data.isTargetDevtools()) {
|
||||
this.emitter.emit(data.msg, data.data);
|
||||
this.emitter.emit(data.msg, data);
|
||||
} else {
|
||||
console.log(JSON.stringify(event));
|
||||
debugger;
|
||||
|
@ -44,7 +44,7 @@ export default defineComponent({
|
||||
setup(props, { emit }) {
|
||||
const { config } = storeToRefs(appStore());
|
||||
// 仅在web环境显示
|
||||
const show = ref(__DEV__ && !(chrome && chrome.runtime));
|
||||
const show = ref(__DEV__);
|
||||
// 测试发送的是纯数据
|
||||
const testData = {
|
||||
uuid: "d1NHXHs35F1rbFJZKeigkl",
|
||||
|
Loading…
x
Reference in New Issue
Block a user