feat(原生桌面): 精简原生适配冗余封装
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-10-17 18:37:46 +08:00
1 parent bd8add89f3
commit 2e5241733a
2 files changed
+9 -11

No files matched your search

+2 -1
View File
@@ -18,6 +18,7 @@ package webview
import (
"context"
"crypto/rand"
"encoding/json"
"errors"
"fmt"
@@ -179,7 +180,7 @@ func (h *Host) call(ctx context.Context, name string, raw json.RawMessage) (any,
engine.ReserveOutput = h.reserveOutput
engine.CleanupOutput = h.cleanupOutput
engine.LoadFont = h.loadFont
id := token()
id := rand.Text()
h.mu.Lock()
h.engines[id] = engine
h.mu.Unlock()