@ -12,7 +12,7 @@
<router-view />
</template>
<script setup>
import { inject, provide } from 'vue'
import { inject, onMounted, provide } from 'vue'
import {useRouter, useRoute} from 'vue-router'
provide("router", useRouter())
@ -5,7 +5,7 @@
<h1 @click="$router.go(-1)">demo page</h1>
import { onActivated } from "vue"
import { onActivated, reactive } from "vue"
console.log(">>>>>>>>>>>>---------demo---------setup---------")
onActivated(()=>{