|
|
@@ -0,0 +1,32 @@
|
|
|
+<template>
|
|
|
+ <Teleport to="body">
|
|
|
+ <div class="box">
|
|
|
+ <div class="text-3xl">Demo</div>
|
|
|
+ {{ data }}
|
|
|
+ <!-- <ul>
|
|
|
+ <li v-for="item in res.data.data" :key="item.id">{{ item.title }}</li>
|
|
|
+ </ul> -->
|
|
|
+ </div>
|
|
|
+ </Teleport>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+import { ref, reactive, onMounted } from "vue";
|
|
|
+import axios from "axios";
|
|
|
+onMounted(() => {
|
|
|
+ init();
|
|
|
+});
|
|
|
+// const init = () => {
|
|
|
+
|
|
|
+// };
|
|
|
+// function init() {
|
|
|
+// }
|
|
|
+
|
|
|
+let {
|
|
|
+ data: { data },
|
|
|
+} = await axios.get("http://shop-api.edu.koobietech.com/prod/tagProdList");
|
|
|
+console.log(data, "data");
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+</style>
|