Skip to content

Commit 8bea964

Browse files
k1nzK1nZ
andauthored
fix(notice): fix goDetail error (#47)
Co-authored-by: K1nZ <k1nz.qiu@foxmail.com>
1 parent c2eb01d commit 8bea964

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/layouts/components/Notice.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ import { NotificationItem } from '@/interface';
5353
5454
export default defineComponent({
5555
setup() {
56+
const router = useRouter();
5657
const store = useStore();
5758
const { msgData } = store.state.notification;
5859
@@ -75,7 +76,6 @@ export default defineComponent({
7576
};
7677
7778
const goDetail = () => {
78-
const router = useRouter();
7979
router.push('/detail/secondary');
8080
};
8181

0 commit comments

Comments
 (0)