From d2f6dac989a5f522c14b0243140d8f1639fed975 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 06 八月 2026 17:24:39 +0800
Subject: [PATCH] 银川 1.添加全局预览附件功能
---
src/preferences.ts | 2
src/components/form-create/components/use-api-select.tsx | 4
src/views/ai/chat/index/modules/message/list-empty.vue | 2
src/packages/effects/layouts/src/widgets/help/help.vue | 67 ----------------------
src/packages/@core/base/shared/src/constants/vben.ts | 5 -
src/views/im/home/index.vue | 2
internal/vite-config/src/config/application.ts | 2
src/components/upload/file-upload.vue | 14 ++--
src/packages/effects/common-ui/src/ui/authentication/doc-link.vue | 41 -------------
9 files changed, 16 insertions(+), 123 deletions(-)
diff --git a/internal/vite-config/src/config/application.ts b/internal/vite-config/src/config/application.ts
index fa996b2..abfa44b 100644
--- a/internal/vite-config/src/config/application.ts
+++ b/internal/vite-config/src/config/application.ts
@@ -44,7 +44,7 @@
nitroMockOptions: {},
print: !isBuild,
printInfoMap: {
- Docs: 'https://doc.iocoder.cn/quick-start/',
+ Docs: '#',
},
pwa: true,
pwaOptions: getDefaultPwaOptions(appTitle),
diff --git a/src/components/form-create/components/use-api-select.tsx b/src/components/form-create/components/use-api-select.tsx
index 1fb4cf8..5ff3d2a 100644
--- a/src/components/form-create/components/use-api-select.tsx
+++ b/src/components/form-create/components/use-api-select.tsx
@@ -161,9 +161,9 @@
parseOptions0(data);
return;
}
- // 鎯呭喌涓夛細涓嶆槸 yudao-vue-pro 鏍囧噯杩斿洖
+ // 鎯呭喌涓夛細涓嶆槸鏍囧噯杩斿洖
console.warn(
- `鎺ュ彛[${props.url}] 杩斿洖缁撴灉涓嶆槸 yudao-vue-pro 鏍囧噯杩斿洖寤鸿閲囩敤鑷畾涔夎В鏋愬嚱鏁板鐞哷,
+ `鎺ュ彛[${props.url}] 杩斿洖缁撴灉涓嶆槸鏍囧噯杩斿洖寤鸿閲囩敤鑷畾涔夎В鏋愬嚱鏁板鐞哷,
);
}
diff --git a/src/components/upload/file-upload.vue b/src/components/upload/file-upload.vue
index 15eb640..b095bdd 100644
--- a/src/components/upload/file-upload.vue
+++ b/src/components/upload/file-upload.vue
@@ -143,7 +143,6 @@
}
const { openPreview, previewState } = useFilePreview();
-const previewLoading = ref(false);
/** 澶勭悊鏂囦欢棰勮 */
async function handlePreview(file: UploadFile) {
@@ -157,17 +156,16 @@
window.open(url, '_blank');
return;
}
- previewLoading.value = true;
try {
- const blob = await requestClient.get(url, { responseType: 'blob' }) as unknown as Blob;
- const blobUrl = URL.createObjectURL(blob);
+ // 灏嗙粷瀵� URL 杞负鐩稿璺緞锛岃蛋 Vite 浠g悊閬垮厤璺ㄥ煙
+ const path = typeof url === 'string' ? url.replace(/^https?:\/\/[^/]+/, '') : url;
+ const blob = await requestClient.download(path);
+ const blobUrl = URL.createObjectURL(blob as Blob);
openPreview(blobUrl, name);
+ emit('preview', file);
} catch {
- message.error('鏂囦欢鍔犺浇澶辫触锛岃灏濊瘯涓嬭浇鍚庢煡鐪�');
- } finally {
- previewLoading.value = false;
+ message.error('鏂囦欢鍔犺浇澶辫触');
}
- emit('preview', file);
}
/** 澶勭悊鏂囦欢鏁伴噺瓒呴檺 */
diff --git a/src/packages/@core/base/shared/src/constants/vben.ts b/src/packages/@core/base/shared/src/constants/vben.ts
index 5e17ca3..683f66c 100644
--- a/src/packages/@core/base/shared/src/constants/vben.ts
+++ b/src/packages/@core/base/shared/src/constants/vben.ts
@@ -2,14 +2,13 @@
* @zh_CN GITHUB 浠撳簱鍦板潃
*/
// export const VBEN_GITHUB_URL = 'https://github.com/vbenjs/vue-vben-admin';
-export const VBEN_GITHUB_URL =
- 'https://github.com/yudaocode/yudao-ui-admin-vben';
+export const VBEN_GITHUB_URL = '#';
/**
* @zh_CN 鏂囨。鍦板潃
*/
// export const VBEN_DOC_URL = 'https://doc.vben.pro';
-export const VBEN_DOC_URL = 'https://doc.iocoder.cn/';
+export const VBEN_DOC_URL = '#';
/**
* @zh_CN Vben Logo
diff --git a/src/packages/effects/common-ui/src/ui/authentication/doc-link.vue b/src/packages/effects/common-ui/src/ui/authentication/doc-link.vue
index abf43c8..4850d8e 100644
--- a/src/packages/effects/common-ui/src/ui/authentication/doc-link.vue
+++ b/src/packages/effects/common-ui/src/ui/authentication/doc-link.vue
@@ -5,44 +5,5 @@
</script>
<template>
- <div class="w-full sm:mx-auto md:max-w-md">
- <div class="mt-4 flex items-center justify-between">
- <span class="border-input w-[35%] border-b dark:border-gray-600"></span>
- <span class="text-muted-foreground text-center text-xs uppercase">
- 钀屾柊蹇呰
- </span>
- <span class="border-input w-[35%] border-b dark:border-gray-600"></span>
- </div>
-
- <div class="mt-4 flex w-full justify-between">
- <a
- href="https://doc.iocoder.cn/"
- target="_blank"
- class="text-primary hover:text-primary/80 text-sm"
- >
- 馃摎 寮�鍙戞寚鍗�
- </a>
- <a
- href="https://doc.iocoder.cn/video/"
- target="_blank"
- class="text-primary hover:text-primary/80 text-sm"
- >
- 馃敟 瑙嗛鏁欑▼
- </a>
- <a
- href="https://www.iocoder.cn/Interview/good-collection/"
- target="_blank"
- class="text-primary hover:text-primary/80 text-sm"
- >
- 鈿� 闈㈣瘯鎵嬪唽
- </a>
- <a
- href="http://static.yudao.iocoder.cn/mp/xinyu370.jpeg"
- target="_blank"
- class="text-primary hover:text-primary/80 text-sm"
- >
- 馃 澶栧寘鍜ㄨ
- </a>
- </div>
- </div>
+ <div class="w-full sm:mx-auto md:max-w-md" />
</template>
diff --git a/src/packages/effects/layouts/src/widgets/help/help.vue b/src/packages/effects/layouts/src/widgets/help/help.vue
index e902d0b..7890875 100644
--- a/src/packages/effects/layouts/src/widgets/help/help.vue
+++ b/src/packages/effects/layouts/src/widgets/help/help.vue
@@ -3,7 +3,7 @@
import { openWindow } from '../../../../../utils/src';
import { useVbenModal } from '../../../../../@core/ui-kit/popup-ui/src';
-import { Badge, VbenButton, VbenButtonGroup } from '../../../../../@core/ui-kit/shadcn-ui/src';
+import { VbenButton, VbenButtonGroup } from '../../../../../@core/ui-kit/shadcn-ui/src';
import { useMagicKeys, whenever } from '@vueuse/core';
@@ -30,77 +30,12 @@
<div class="mt-2 flex flex-col">
<div class="mt-2 flex flex-col">
<VbenButtonGroup class="basis-1/3" :gap="2" border size="large">
- <p class="w-24 p-2">椤圭洰鍦板潃:</p>
- <VbenButton
- variant="link"
- @click="
- openWindow('https://gitee.com/yudaocode/yudao-ui-admin-vben')
- "
- >
- Gitee
- </VbenButton>
- <VbenButton
- variant="link"
- @click="
- openWindow('https://github.com/yudaocode/yudao-ui-admin-vben')
- "
- >
- Github
- </VbenButton>
- </VbenButtonGroup>
-
- <VbenButtonGroup class="basis-1/3" :gap="2" border size="large">
- <p class="w-24 p-2">issues:</p>
- <VbenButton
- variant="link"
- @click="
- openWindow(
- 'https://gitee.com/yudaocode/yudao-ui-admin-vben/issues',
- )
- "
- >
- Gitee
- </VbenButton>
- <VbenButton
- variant="link"
- @click="
- openWindow(
- 'https://github.com/yudaocode/yudao-ui-admin-vben/issues',
- )
- "
- >
- Github
- </VbenButton>
- </VbenButtonGroup>
-
- <VbenButtonGroup class="basis-1/3" :gap="2" border size="large">
<p class="w-24 p-2">寮�鍙戞枃妗�:</p>
- <VbenButton
- variant="link"
- @click="openWindow('https://doc.iocoder.cn/quick-start/')"
- >
- 椤圭洰鏂囨。
- </VbenButton>
<VbenButton variant="link" @click="openWindow('https://antdv.com/')">
antdv 鏂囨。
</VbenButton>
</VbenButtonGroup>
</div>
-
- <div class="mt-2 flex justify-start">
- <p class="w-24 p-2">杞欢澶栧寘:</p>
- <img
- src="/wx-xingyu.png"
- alt="鏁拌埖绉戞妧"
- class="cursor-pointer"
- width="80%"
- @click="openWindow('https://shuduokeji.com')"
- />
- </div>
- <p class="mt-2 flex justify-center pt-4 text-sm italic">
- 鏈」鐩噰鐢� <Badge class="mx-2" variant="destructive">MIT</Badge>
- 寮�婧愬崗璁紝涓汉涓庝紒涓氬彲100% 鍏嶈垂浣跨敤
- </p>
</div>
</Modal>
</template>
diff --git a/src/preferences.ts b/src/preferences.ts
index 6b87741..fbaa7b4 100644
--- a/src/preferences.ts
+++ b/src/preferences.ts
@@ -32,7 +32,7 @@
},
copyright: {
companyName: import.meta.env.VITE_APP_TITLE,
- companySiteLink: 'https://gitee.com/yudaocode/yudao-ui-admin-vben',
+ companySiteLink: '#',
},
logo: {
source: __APP_LOGO__ || undefined,
diff --git a/src/views/ai/chat/index/modules/message/list-empty.vue b/src/views/ai/chat/index/modules/message/list-empty.vue
index f97a054..1f0b866 100644
--- a/src/views/ai/chat/index/modules/message/list-empty.vue
+++ b/src/views/ai/chat/index/modules/message/list-empty.vue
@@ -20,7 +20,7 @@
<div class="relative flex h-full w-full flex-row justify-center">
<div class="flex flex-col justify-center">
<!-- title -->
- <div class="text-center text-3xl font-bold">鑺嬮亾 AI</div>
+ <div class="text-center text-3xl font-bold">AI 鍔╂墜</div>
<!-- role-list -->
<div class="mt-5 flex w-96 flex-wrap items-center justify-center">
<div
diff --git a/src/views/im/home/index.vue b/src/views/im/home/index.vue
index 0689956..64f9f84 100644
--- a/src/views/im/home/index.vue
+++ b/src/views/im/home/index.vue
@@ -185,7 +185,7 @@
)
/**
- * 娴忚鍣ㄦ爣绛� title 鎷间笂鏈鏁板墠缂�锛涗緥锛�(63鏉℃湭璇�)鑺嬮亾婧愮爜
+ * 娴忚鍣ㄦ爣绛� title 鎷间笂鏈鏁板墠缂�锛涗緥锛�(63鏉℃湭璇�)
*
* 璺敱鍒囨崲鏃� router.afterEach 浼氳皟 useTitle 閲嶇疆 title锛涚敤 nextTick 鎺掑湪瀹冧箣鍚庡啀瑕嗙洊
* 涓�骞剁洃鍚� route.fullPath锛孖M 瀛愯矾鐢卞垏鎹紙娑堟伅 / 閫氳褰曪級涔熻兘閲嶆柊鍔犱笂鍓嶇紑
--
Gitblit v1.9.3