mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 09:29:50 +08:00
fix(notice): fix goDetail error (#47)
Co-authored-by: K1nZ <k1nz.qiu@foxmail.com>
This commit is contained in:
parent
c2eb01d310
commit
8bea964e9f
|
@ -53,6 +53,7 @@ import { NotificationItem } from '@/interface';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
setup() {
|
setup() {
|
||||||
|
const router = useRouter();
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const { msgData } = store.state.notification;
|
const { msgData } = store.state.notification;
|
||||||
|
|
||||||
|
@ -75,7 +76,6 @@ export default defineComponent({
|
||||||
};
|
};
|
||||||
|
|
||||||
const goDetail = () => {
|
const goDetail = () => {
|
||||||
const router = useRouter();
|
|
||||||
router.push('/detail/secondary');
|
router.push('/detail/secondary');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user