From ee840e223c09bd55d0e00187df4ae748bbf2df64 Mon Sep 17 00:00:00 2001 From: ShineKOT <1917095344@qq.com> Date: Tue, 11 Feb 2025 17:43:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=89=93=E5=BC=80Ai?= =?UTF-8?q?=E8=81=8A=E5=A4=A9=E5=BA=94=E7=94=A8=E5=B7=A5=E5=85=B7=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ src/util/app-util/app-util.ts | 14 +++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4caa4731..92304cbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ ## [Unreleased] +### Added + +- 新增打开Ai聊天应用工具方法 + ## [0.0.52] - 2025-02-11 ### Changed diff --git a/src/util/app-util/app-util.ts b/src/util/app-util/app-util.ts index 57fb284a..74d0abf6 100644 --- a/src/util/app-util/app-util.ts +++ b/src/util/app-util/app-util.ts @@ -1,7 +1,8 @@ /* eslint-disable no-unused-vars */ /* eslint-disable @typescript-eslint/no-unused-vars */ import { Router } from 'vue-router'; -import { IAppUtil, IAuthResult } from '@ibiz-template/runtime'; +import { IAiChatParam, IAppUtil, IAuthResult } from '@ibiz-template/runtime'; +import { IChatMessage, RuntimeError } from '@ibiz-template/core'; export class AppUtil implements IAppUtil { /** @@ -185,4 +186,15 @@ export class AppUtil implements IAppUtil { } return true; } + + /** + * 打开AI聊天 + * + * @param {IAiChatParam} params + * @return {*} {Promise} + * @memberof AppUtil + */ + async openAiChat(params: IAiChatParam): Promise { + throw new RuntimeError(ibiz.i18n.t('app.noSupport')); + } } -- Gitee