feat: 新首页的搭建
This commit is contained in:
14
src/pages/Discovery/index.vue
Normal file
14
src/pages/Discovery/index.vue
Normal file
@@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<AiTabSwitch v-model="tabIndex" :list="['探索发现', 'AI伴游']" @change="handleChange" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
import AiTabSwitch from "@/components/AiTabSwitch/index.vue";
|
||||
|
||||
const tabIndex = ref(0);
|
||||
|
||||
const handleChange = (i) => {
|
||||
console.log("切换:", i);
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user