From 10ba84e3492ceef77710704c8e14ae7d20e5c294 Mon Sep 17 00:00:00 2001 From: fish Date: Wed, 15 Jul 2026 22:40:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=AB=E6=8D=B7=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E8=BF=90=E8=A1=8C=E6=97=B6=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Note/SaveClipIntent.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Note/SaveClipIntent.swift b/Note/SaveClipIntent.swift index 94a016e..24014b2 100644 --- a/Note/SaveClipIntent.swift +++ b/Note/SaveClipIntent.swift @@ -25,13 +25,13 @@ struct SaveClipIntent: AppIntent { self.source = source } - func perform() async throws -> some IntentResult { + func perform() async throws -> some IntentResult & ReturnsValue { let trimmed = text.trimmingCharacters(in: .whitespacesAndNewlines) guard !trimmed.isEmpty else { - return .result(dialog: "文案为空,未保存。") + return .result(value: "文案为空,未保存。") } try await ClipStore.shared.save(text: trimmed, source: source) - return .result(dialog: "已保存到收集箱。") + return .result(value: "已保存到收集箱。") } }