main
significative 5 months ago
parent f4a434e49c
commit 6ab0cad1dd
  1. 14
      jeecgboot-vue3-master/src/views/demo/main-home/components/matchEvaluation/index.vue

@ -12,11 +12,23 @@
</div> </div>
</div> </div>
</div> --> </div> -->
<router-view></router-view> <router-view v-slot="{ Component }">
<component :is="Component" :key="acKey" />
</router-view>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, watch } from 'vue';
import { useRoute } from 'vue-router';
const route = useRoute()
const acKey = ref()
watch(() => route.query.id, (newVal:string) => {
acKey.value =newVal
}, {
immediate: true
})
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>

Loading…
Cancel
Save