This commit is contained in:
@ -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>
|
||||||
|
Reference in New Issue
Block a user