Skip to content

Commit 007c3f7

Browse files
committed
🐛 修复运行日志跳转条件问题 #445
1 parent 7cb20d5 commit 007c3f7

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/app/logger/message_writer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export default class MessageWriter implements Writer {
1313
}
1414

1515
write(level: LogLevel, message: string, label: LogLabel): void {
16-
console.log(`[${level}] ${message}`, label);
1716
this.send.sendMessage({
1817
action: this.action,
1918
data: {

src/app/service/sandbox/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class Runtime {
109109

110110
// 执行脚本
111111
async execScript(script: ScriptLoadInfo, execOnce?: boolean) {
112-
const logger = this.logger.with({ script: script.uuid, name: script.name });
112+
const logger = this.logger.with({ uuid: script.uuid, name: script.name });
113113
if (this.execScripts.has(script.uuid)) {
114114
// 释放掉资源
115115
// 暂未实现执行完成后立马释放,会在下一次执行时释放

src/pages/options/routes/ScriptList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function ScriptList() {
264264
pathname: "logger",
265265
search: `query=${encodeURIComponent(
266266
JSON.stringify([
267-
{ key: "scriptId", value: item.uuid },
267+
{ key: "uuid", value: item.uuid },
268268
{
269269
key: "component",
270270
value: "GM_log",

0 commit comments

Comments
 (0)