Skip to content

Commit 59a3a2b

Browse files
bypanghu陶正虎
andauthored
fix: 修复上传图片返回的错误信息,修复登录跳转的转跳函数 (flipped-aurora#1340)
* fix : 修改登录转跳是replace * fix:修复上传图片组件的 报错 --------- Co-authored-by: 陶正虎 <zhenghu.tao@jutze.com.cn>
1 parent 6765988 commit 59a3a2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/src/components/upload/common.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const checkFile = (file) => {
3636
fullscreenLoading.value = false
3737
}
3838
if (!isLt2M) {
39-
ElMessage.error('未压缩未见上传图片大小不能超过 500KB,请使用压缩上传')
39+
ElMessage.error('未压缩的上传图片大小不能超过 500KB,请使用压缩上传')
4040
fullscreenLoading.value = false
4141
}
4242
return (isPng || isJPG) && isLt2M

web/src/pinia/modules/user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const useUserStore = defineStore('user', () => {
6565
asyncRouters.forEach(asyncRouter => {
6666
router.addRoute(asyncRouter)
6767
})
68-
await router.push({ name: userInfo.value.authority.defaultRouter })
68+
await router.replace({ name: userInfo.value.authority.defaultRouter })
6969
loadingInstance.value.close()
7070
return true
7171
}

0 commit comments

Comments
 (0)