|
|
@@ -1,9 +1,24 @@
|
|
|
<template>
|
|
|
- <div>我的</div>
|
|
|
+ <div>
|
|
|
+ <h1>我的</h1>
|
|
|
+ <button @click="goList">去列表</button>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { ref, reactive } from "vue";
|
|
|
+import { useRouter } from "vue-router";
|
|
|
+const router = useRouter();
|
|
|
+const goList = () => {
|
|
|
+ // router.back();
|
|
|
+ // router.replace("/home");
|
|
|
+ // router.forward();
|
|
|
+ // router.go(-2);
|
|
|
+ // router.push("/list");
|
|
|
+ // router.push("/list");
|
|
|
+};
|
|
|
+
|
|
|
+// ref() reactive()
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|