feat: 重定向

main
许宏杰 3 weeks ago
parent 1e330a6761
commit 09be0756c4

@ -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)
})

@ -30,7 +30,7 @@ export function createRouterGuards(router: Router) {
}
// @ts-ignore
if (!routerAllowList.includes(to.name) && !loginCheck()) {
next({ name: 'myBoard' })
next({ name: 'ai' })
}
next()
})

@ -89,7 +89,7 @@ const handlerBoard = async (path = 'board') => {
}
onMounted(() => {
// handlerBoard()
handlerBoard()
// router.push('/myBoard')
})

@ -101,6 +101,7 @@ const previewHandle = cardData => {
openNewWindow(previewPath(cardData.id))
}
onMounted(() => {
console.log('进入')
fetchList()
})
</script>

Loading…
Cancel
Save