Commit 227ae6e5 by Lin

feat: 类型优化

1 parent 779fbfae
Pipeline #63 for 227ae6e5 failed in 0 seconds
<!-- 此文件为项目占位文件,项目入口为 index.html + src/main.ts -->
......@@ -7,21 +7,24 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
Layout: typeof import('./layouts/index.vue')['default']
Layouts: typeof import('./layouts/index.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
VanButton: typeof import('vant/es')['Button']
VanCell: typeof import('vant/es')['Cell']
VanCellGroup: typeof import('vant/es')['CellGroup']
VanEmpty: typeof import('vant/es')['Empty']
VanGrid: typeof import('vant/es')['Grid']
VanGridItem: typeof import('vant/es')['GridItem']
VanIcon: typeof import('vant/es')['Icon']
VanImage: typeof import('vant/es')['Image']
VanImagePreview: typeof import('vant/es')['ImagePreview']
VanList: typeof import('vant/es')['List']
VanLoading: typeof import('vant/es')['Loading']
VanNavBar: typeof import('vant/es')['NavBar']
VanPullRefresh: typeof import('vant/es')['PullRefresh']
VanSearch: typeof import('vant/es')['Search']
VanSkeleton: typeof import('vant/es')['Skeleton']
VanSticky: typeof import('vant/es')['Sticky']
VanSwipe: typeof import('vant/es')['Swipe']
VanSwipeItem: typeof import('vant/es')['SwipeItem']
......
......@@ -164,7 +164,7 @@ onMounted(() => {
:key="tag"
type="primary"
plain
size="small"
size="medium"
>
{{ tag }}
</van-tag>
......
<script setup lang="ts">
import { ref, onMounted } from "vue";
import { useRouter } from "vue-router";
import { showToast } from "vant";
import type { CarItem } from "@/api/modules/car";
import { getRecommendedCars } from "@/api/modules/car";
......@@ -139,7 +138,7 @@ onMounted(() => {
:key="tag"
type="primary"
plain
size="small"
size="medium"
>
{{ tag }}
</van-tag>
......
<script setup lang="ts">
import { ref } from "vue";
import { useRouter } from "vue-router";
import { showToast } from "vant";
import { useUserStore } from "@/stores";
const router = useRouter();
const userStore = useUserStore();
const menuList = [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!