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