From 8ab48352706f6fa6f94bd0109109365d51479018 Mon Sep 17 00:00:00 2001 From: lq1405 <2769838458@qq.com> Date: Mon, 15 Sep 2025 14:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=20=E9=A2=84?= =?UTF-8?q?=E8=AE=BE=E7=9A=84=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=20?= =?UTF-8?q?=E5=92=8C=20=E6=8E=88=E6=9D=83=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + package.json | 2 +- src/define/data/softwareData.ts | 7 +- src/i18n/locales/en.ts | 3 + src/i18n/locales/zh-cn.ts | 3 + .../components/Preset/AddOrModifyPreset.vue | 242 +++++++++++------- src/renderer/src/views/Authorization.vue | 2 +- 7 files changed, 159 insertions(+), 101 deletions(-) diff --git a/.gitignore b/.gitignore index feb5082..c113bdf 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ resources/project Database build src/renderer/src/components/Original/MainHome/OriginalTaskCard.vue +resources/image/预设 diff --git a/package.json b/package.json index d72c595..a1c779e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "laitool-pro", "productName": "LaiToolPro", - "version": "v3.4.7", + "version": "v3.4.8", "description": "来推 Pro - 一款集音频处理、文案生成、图片生成、视频生成等功能于一体的多合一AI工具软件。", "main": "./out/main/index.js", "author": "xiangbei", diff --git a/src/define/data/softwareData.ts b/src/define/data/softwareData.ts index 1687be3..a3e191a 100644 --- a/src/define/data/softwareData.ts +++ b/src/define/data/softwareData.ts @@ -12,7 +12,9 @@ interface ISoftwareData { /** 软件文档 */ softwareUrl: string /** WIKI */ - wikiUrl: string + wikiUrl: string, + /** 授权文档 */ + authUrl: string } /** MJ相关文档链接 */ mjDoc: { @@ -35,7 +37,8 @@ export const SoftwareData: ISoftwareData = { updateUrl: 'https://pvwu1oahp5m.feishu.cn/docx/CAjGdTDlboJ3nVx0cQccOuNHnvd', softwareUrl: 'https://pvwu1oahp5m.feishu.cn/docx/FONZdfnrOoLlMrxXHV0czJ3jnkd', wikiUrl: - 'https://rvgyir5wk1c.feishu.cn/wiki/space/7481893355360190492?ccm_open_type=lark_wiki_spaceLink&open_tab_from=wiki_home' + 'https://rvgyir5wk1c.feishu.cn/wiki/space/7481893355360190492?ccm_open_type=lark_wiki_spaceLink&open_tab_from=wiki_home', + authUrl: "https://rvgyir5wk1c.feishu.cn/wiki/UUbrwAalJiq9BUkHymscD0E8nCc" }, mjDoc: { mjAPIDoc: 'https://rvgyir5wk1c.feishu.cn/wiki/OEj7wIdD6ivvCAkez4OcUPLcnIf', diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index 30764a8..e3bb9e0 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -988,6 +988,7 @@ export default { '正在初始化预设库模块': "Initializing preset library module", '释放添加图片': 'Release to add image', '点击或拖拽添加图片': 'Click or drag to add image', + '仅支持图片格式': 'Only image formats supported', '预设名称': 'Preset Name', '请输入预设名称': 'Please enter preset name', '预设分类': 'Preset Category', @@ -1054,6 +1055,8 @@ export default { '选择文件失败,{error}': 'Failed to select file, {error}', "选择文件夹失败,{error}": "Failed to select folder, {error}", "在相同类型下已存在当前的预设名字,请修改后再试!": "Preset name already exists under the same type, please modify and try again!", + "选择文件失败,无效的文件对象": "Failed to select file, invalid file object", + "选择文件失败,只能上传图片文件": "Failed to select file, only image files can be uploaded", //#endregion //#region 原创 diff --git a/src/i18n/locales/zh-cn.ts b/src/i18n/locales/zh-cn.ts index 0637241..c4939d0 100644 --- a/src/i18n/locales/zh-cn.ts +++ b/src/i18n/locales/zh-cn.ts @@ -988,6 +988,7 @@ export default { '正在初始化预设库模块': "正在初始化预设库模块", '释放添加图片': '释放添加图片', '点击或拖拽添加图片': '点击或拖拽添加图片', + '仅支持图片格式': '仅支持图片格式', '预设名称': '预设名称', '请输入预设名称': '请输入预设名称', '预设分类': '预设分类', @@ -1054,6 +1055,8 @@ export default { '选择文件失败,{error}': '选择文件失败,{error}', "选择文件夹失败,{error}": "选择文件夹失败,{error}", "在相同类型下已存在当前的预设名字,请修改后再试!": "在相同类型下已存在当前的预设名字,请修改后再试!", + "选择文件失败,无效的文件对象": "选择文件失败,无效的文件对象", + "选择文件失败,只能上传图片文件": "选择文件失败,只能上传图片文件", //#endregion //#region 原创 diff --git a/src/renderer/src/components/Preset/AddOrModifyPreset.vue b/src/renderer/src/components/Preset/AddOrModifyPreset.vue index 4cf22a0..ee93683 100644 --- a/src/renderer/src/components/Preset/AddOrModifyPreset.vue +++ b/src/renderer/src/components/Preset/AddOrModifyPreset.vue @@ -7,28 +7,32 @@