parent
b6e1778e99
commit
c27ab8656f
@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
11111
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { onBeforeMount } from "vue";
|
||||||
|
import { useRouter ,useRoute } from "vue-router";
|
||||||
|
const route = useRoute()
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
div{
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,16 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<button @click="getinfo">编辑</button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
|
||||||
|
import { useRouter ,useRoute } from "vue-router";
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
|
const getinfo = () => {
|
||||||
|
|
||||||
|
router.push({ path: "/test/info",query:{parentName:"/test/test1"} });
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue