From bd769a01aa3e037d1b279ae958934565b2a7ac9b Mon Sep 17 00:00:00 2001 From: CodFrm Date: Sun, 7 Nov 2021 17:26:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=97=B6=E4=BB=A3=E7=A0=81=E5=AF=B9=E6=AF=94=E5=8F=8D=E5=90=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/grant/background.ts | 2 -- src/views/pages/Install/index.vue | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/apps/grant/background.ts b/src/apps/grant/background.ts index f1e2d6e9..6937254d 100644 --- a/src/apps/grant/background.ts +++ b/src/apps/grant/background.ts @@ -138,7 +138,6 @@ export class BackgroundGrant { }); } }); - console.log(details.responseHeaders); return { responseHeaders: details.responseHeaders } @@ -372,7 +371,6 @@ export class BackgroundGrant { protected dealXhr(config: GM_Types.XHRDetails, xhr: XMLHttpRequest): GM_Types.XHRResponse { let removeXCat = new RegExp("x-cat-" + this.rand + "-", "g"); - console.log(xhr.getAllResponseHeaders().replace(removeXCat, ""), removeXCat); let respond: GM_Types.XHRResponse = { finalUrl: config.url, readyState: xhr.readyState, diff --git a/src/views/pages/Install/index.vue b/src/views/pages/Install/index.vue index 2a5bc681..2d22cf9c 100644 --- a/src/views/pages/Install/index.vue +++ b/src/views/pages/Install/index.vue @@ -214,8 +214,8 @@ export default class Index extends Vue { diffWordWrap: "off", }); this.diff.setModel({ - original: editor.createModel(oldsub.code, "javascript"), - modified: editor.createModel(this.script.code, "javascript"), + original: editor.createModel(this.script.code, "javascript"), + modified: editor.createModel(oldsub.code, "javascript"), }); this.isupdate = true; this.oldVersion =