From 2ccfc6ffa1901a5c74a1dacb2b63fc07b93e57ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Wed, 28 Aug 2024 17:27:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=B3=E8=BD=AC=E4=BD=BF=E7=94=A8=20u?= =?UTF-8?q?seRouter=20=E5=BD=A2=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting_dashboard/new_dashboard_component/WarningList.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/WarningList.vue b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/WarningList.vue index 77d8ef2..5c3d55b 100644 --- a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/WarningList.vue +++ b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/WarningList.vue @@ -40,6 +40,7 @@ import 重要 from './images/警告级别-重要.png' import 次要 from './images/警告级别-次要.png' import 常规 from './images/警告级别-常规.png' import dayjs from 'utils/day' +import { useRouter } from '@cmp/cmp-core' export default { components: { ItemCard }, data() { @@ -101,7 +102,8 @@ export default { }) }, goPage() { - this.$router.push({ + const router = useRouter() + router.push({ name: 'OmsDashbaord', query: { redirect: '/alarm/current'