src/views/test.vue
@@ -1,4 +1,18 @@ <template> <div>hello test page</div> <div class="test"> {{a}} <button @click="actionA">点我呀</button> </div> </template> <script lang="ts" setup> import usePage from './vuetool/index.js' const {a,actionA} = usePage() </script> <style> .paibanclass { background: rgb(228, 231, 225); color: #00f; } </style>