mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-08 22:57:11 +08:00
refactor(system): 优化通知公告相关页面的回退逻辑
- 修改通知公告添加页面、查看页面以及用户消息查看页面的回退逻辑 - 将原来的 router.back() 和 tabsStore.closeCurrent()替换为直接跳转到指定页面 - 优化用户体验,确保回退后能准确返回到预期的页面
This commit is contained in:
@@ -207,8 +207,8 @@ const onUpdate = async (id: string) => {
|
||||
|
||||
// 返回
|
||||
const onBack = () => {
|
||||
router.back()
|
||||
tabsStore.closeCurrent(route.path)
|
||||
router.push('/system/notice')
|
||||
}
|
||||
|
||||
// 保存
|
||||
|
@@ -52,8 +52,8 @@ const content = computed(() => dataDetail.value?.content)
|
||||
|
||||
// 回退
|
||||
const onBack = () => {
|
||||
router.back()
|
||||
tabsStore.closeCurrent(route.path)
|
||||
router.push('/system/notice')
|
||||
}
|
||||
|
||||
// 打开
|
||||
|
@@ -59,8 +59,8 @@ const [form, resetForm] = useResetReactive({
|
||||
|
||||
// 回退
|
||||
const onBack = () => {
|
||||
router.back()
|
||||
tabsStore.closeCurrent(route.path)
|
||||
router.push({ path: '/user/message', query: { tab: 'notice' } })
|
||||
}
|
||||
|
||||
// 打开
|
||||
|
Reference in New Issue
Block a user