fix: 跳转使用 useRouter 形式
parent
953138f7e9
commit
2ccfc6ffa1
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue