refactor(system): 优化通知公告相关页面的回退逻辑

- 修改通知公告添加页面、查看页面以及用户消息查看页面的回退逻辑
- 将原来的 router.back() 和 tabsStore.closeCurrent()替换为直接跳转到指定页面
- 优化用户体验,确保回退后能准确返回到预期的页面
This commit is contained in:
2025-07-07 21:28:42 +08:00
parent aaefb7f8e4
commit 633f9aaa4a
3 changed files with 3 additions and 3 deletions

View File

@@ -207,8 +207,8 @@ const onUpdate = async (id: string) => {
// 返回
const onBack = () => {
router.back()
tabsStore.closeCurrent(route.path)
router.push('/system/notice')
}
// 保存

View File

@@ -52,8 +52,8 @@ const content = computed(() => dataDetail.value?.content)
// 回退
const onBack = () => {
router.back()
tabsStore.closeCurrent(route.path)
router.push('/system/notice')
}
// 打开

View File

@@ -59,8 +59,8 @@ const [form, resetForm] = useResetReactive({
// 回退
const onBack = () => {
router.back()
tabsStore.closeCurrent(route.path)
router.push({ path: '/user/message', query: { tab: 'notice' } })
}
// 打开