Skip to content

Commit

Permalink
fix: 修复上传图片返回的错误信息,修复登录跳转的转跳函数 (#1340)
Browse files Browse the repository at this point in the history
* fix : 修改登录转跳是replace

* fix:修复上传图片组件的 报错

---------

Co-authored-by: 陶正虎 <zhenghu.tao@jutze.com.cn>
  • Loading branch information
bypanghu and 陶正虎 committed Feb 7, 2023
1 parent e03efc3 commit 26d32c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/upload/common.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const checkFile = (file) => {
fullscreenLoading.value = false
}
if (!isLt2M) {
ElMessage.error('未压缩未见上传图片大小不能超过 500KB,请使用压缩上传')
ElMessage.error('未压缩的上传图片大小不能超过 500KB,请使用压缩上传')
fullscreenLoading.value = false
}
return (isPng || isJPG) && isLt2M
Expand Down
2 changes: 1 addition & 1 deletion web/src/pinia/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const useUserStore = defineStore('user', () => {
asyncRouters.forEach(asyncRouter => {
router.addRoute(asyncRouter)
})
await router.push({ name: userInfo.value.authority.defaultRouter })
await router.replace({ name: userInfo.value.authority.defaultRouter })
loadingInstance.value.close()
return true
}
Expand Down

0 comments on commit 26d32c0

Please sign in to comment.