From 09be0756c430f995bdceb7da4e97198724306bb7 Mon Sep 17 00:00:00 2001 From: xuhongjie <1943105267@qq.com> Date: Tue, 6 May 2025 14:31:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/components/Photos/Private/index.ts | 5 +++-- src/router/router-guards.ts | 2 +- src/views/AI/index.vue | 2 +- src/views/AI/myBoard/index.vue | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/packages/components/Photos/Private/index.ts b/src/packages/components/Photos/Private/index.ts index a975a41..80ee629 100644 --- a/src/packages/components/Photos/Private/index.ts +++ b/src/packages/components/Photos/Private/index.ts @@ -59,7 +59,8 @@ const addConfig = { // 点击上传事件 addHandle: (photoConfig: ConfigType) => { goDialog({ - message: `图片需小于 ${backgroundImageSize}M 且只暂存在浏览器中。当前图片暂存上限5M,超过不再缓存新图片,请自行对接后端接口!现编译成 base64 进行渲染,对接后端后请使用【URL地址】进行交互!`, + // ,请自行对接后端接口!现编译成 base64 进行渲染 对接后端后请使用【URL地址】进行交互! + message: `图片需小于 ${backgroundImageSize}M。`, transformOrigin: 'center', onPositiveCallback: () => { uploadFile((e: UploadCompletedEventType) => { @@ -78,7 +79,7 @@ const addConfig = { } userPhotosList.unshift(newPhoto) // 存储在本地数据中 - setLocalStorage(StoreKey, userPhotosList) + // setLocalStorage(StoreKey, userPhotosList) // 插入到上传按钮前的位置 packagesStore.addPhotos(newPhoto, 1) }) diff --git a/src/router/router-guards.ts b/src/router/router-guards.ts index 044623a..43772d2 100644 --- a/src/router/router-guards.ts +++ b/src/router/router-guards.ts @@ -30,7 +30,7 @@ export function createRouterGuards(router: Router) { } // @ts-ignore if (!routerAllowList.includes(to.name) && !loginCheck()) { - next({ name: 'myBoard' }) + next({ name: 'ai' }) } next() }) diff --git a/src/views/AI/index.vue b/src/views/AI/index.vue index ce49f6b..e8d8024 100644 --- a/src/views/AI/index.vue +++ b/src/views/AI/index.vue @@ -89,7 +89,7 @@ const handlerBoard = async (path = 'board') => { } onMounted(() => { - // handlerBoard() + handlerBoard() // router.push('/myBoard') }) diff --git a/src/views/AI/myBoard/index.vue b/src/views/AI/myBoard/index.vue index 758ccc5..1d3b8a2 100644 --- a/src/views/AI/myBoard/index.vue +++ b/src/views/AI/myBoard/index.vue @@ -101,6 +101,7 @@ const previewHandle = cardData => { openNewWindow(previewPath(cardData.id)) } onMounted(() => { + console.log('进入') fetchList() })