路由跳转方式:
参考官方文档:
如果使用setup的语法糖写法如下:
<template>
<div :onclick="Jump"> 55555</div>
</template>
<script setup lang="ts">
import { useGo } from '/@/hooks/web/usePage';
const go = useGo();
function Jump() {
go('/form-view/Increase'); //go里直接填写路由名也能跳转
}
</script>
<style scoped></style>