feat:发布主题按钮新增未登录提示登录

This commit is contained in:
Xwen
2023-12-22 23:12:47 +08:00
parent 3dc6bfe6ee
commit 35e8ed0944
2 changed files with 16 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ export default function useAuths(opt) {
// 如果有记录当前跳转页面
const currentPath = Session.get("currentPath");
if (currentPath) {
router.push(currentPath);
router.replace(currentPath);
} else {
router.replace({
path: option.loginReUrl ? option.loginReUrl : option.homeUrl,