禅道bug修复

This commit is contained in:
BianLzhaoMin 2025-04-16 14:28:17 +08:00
parent 450beaf8c2
commit d4cb7678f4
3 changed files with 16 additions and 7 deletions

View File

@ -21,7 +21,7 @@
@tap="onHandleImage(icon)"
>
<template #error>
<view style="font-size: 24rpx; height: 120px">加载失败</view>
<!-- <view style="font-size: 24rpx; height: 120px">加载失败</view> -->
</template>
</up-image>
<view class="collect">

View File

@ -527,8 +527,8 @@ const getImgListData = async (isTap = false) => {
}
}
imgList.value.forEach((e) => {
e.imgUrl = `${baseURL}/imgTool/files${e.compressFilePath}?token=${token}`
imgList.value?.forEach((e) => {
e.imgUrl = `${baseURL}/imgTool/files${e?.compressFilePath}?token=${token}`
})
} else {
uni.$u.toast(res.msg)
@ -549,11 +549,13 @@ const finish = computed(() => {
//
const handleMyCollect = () => {
queryParams.value.queryType = 1
queryParams.value.pageNum = 1
getImgListData(true)
}
//
const handleLastUpload = () => {
queryParams.value.queryType = 2
queryParams.value.pageNum = 1
getImgListData(true)
}
@ -566,6 +568,7 @@ const handleGetImgList = () => {
const handleGetImgListByImgType = (type) => {
queryParams.value.uploadType = type
queryParams.value.searchType = 2
queryParams.value.pageNum = 1
getImgListData(true)
}
@ -573,6 +576,7 @@ const handleGetImgListByImgType = (type) => {
const HandleViewImgTotal = () => {
queryParams.value.uploadType = ''
queryParams.value.searchType = 2
queryParams.value.pageNum = 1
getImgListData(true)
}

View File

@ -134,11 +134,7 @@ const onSubmitLogin = debounce(() => {
sendLoading.value = false
if (res.code === 200) {
memberStore.setToken(res.token)
uni.$u.toast('登录成功')
getUserInfo()
setTimeout(() => {
uni.switchTab({ url: '/pages/workbenches/index' })
}, 500)
} else {
uni.$u.toast('登录失败' + res.message)
}
@ -166,6 +162,15 @@ const getUserInfo = () => {
//
memberStore.setUserInfo(res.data)
if (res.data.loginType.includes(1)) {
uni.$u.toast('登录成功')
setTimeout(() => {
uni.switchTab({ url: '/pages/workbenches/index' })
}, 500)
} else {
uni.$u.toast('当前用户暂无登录APP权限请联系管理员')
}
}
})
}