函数($event)
All checks were successful
CI / cache-and-install (push) Successful in 2m25s

This commit is contained in:
严浩
2024-09-11 15:59:26 +08:00
parent 97723c1529
commit a707d3303b

View File

@ -1,10 +1,16 @@
<template> <template>
<div> <div>
<button @click="$router.back()">Back</button> <button @click="函数($event)">Back</button>
<h1>中文-页面.page.vue</h1> <h1>中文-页面.page.vue</h1>
</div> </div>
</template> </template>
<script setup lang="ts"></script> <script setup lang="ts">
const router = useRouter();
const 函数 = function (e: MouseEvent) {
console.log(函数, 'e :>> ', e);
router.back();
};
</script>
<style scoped></style> <style scoped></style>