chrome bug fix

This commit is contained in:
xu_yanfeng 2024-12-28 17:21:06 +08:00
parent 1a84202c02
commit 527327eb14
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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;

View File

@ -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",