Browse Source

master

master
邓宏 3 years ago
parent
commit
9604f4ade9
  1. 2
      src/App.vue
  2. 2
      src/view/demo.vue

2
src/App.vue

@ -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())

2
src/view/demo.vue

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

Loading…
Cancel
Save