zheng 6 дней назад
Родитель
Сommit
e439084b4b
1 измененных файлов с 15 добавлено и 0 удалено
  1. 15 0
      16.vue3/project2/src/views/Demo2.vue

+ 15 - 0
16.vue3/project2/src/views/Demo2.vue

@@ -0,0 +1,15 @@
+<template>
+  <div>
+    <h1>Demo2</h1>
+  </div>
+</template>
+
+<script lang="ts" setup>
+import { ref, reactive } from "vue";
+import { useRoute } from "vue-router";
+const route = useRoute();
+console.log(route, "demo2");
+</script>
+
+<style lang="scss" scoped>
+</style>