fix: 跳转使用 useRouter 形式

develop
时启龙 2024-08-28 17:27:22 +08:00
parent 953138f7e9
commit 2ccfc6ffa1
1 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,7 @@ import 重要 from './images/警告级别-重要.png'
import 次要 from './images/警告级别-次要.png' import 次要 from './images/警告级别-次要.png'
import 常规 from './images/警告级别-常规.png' import 常规 from './images/警告级别-常规.png'
import dayjs from 'utils/day' import dayjs from 'utils/day'
import { useRouter } from '@cmp/cmp-core'
export default { export default {
components: { ItemCard }, components: { ItemCard },
data() { data() {
@ -101,7 +102,8 @@ export default {
}) })
}, },
goPage() { goPage() {
this.$router.push({ const router = useRouter()
router.push({
name: 'OmsDashbaord', name: 'OmsDashbaord',
query: { query: {
redirect: '/alarm/current' redirect: '/alarm/current'