1.创建项目时选择ts,src/type/user.ts
使用时import type {user} from "@/type/user"
const pige=ref<user>()
2.子组件类型定义 src/type/components.ts
1.创建项目时选择ts,src/type/user.ts
使用时import type {user} from "@/type/user"
const pige=ref<user>()
2.子组件类型定义 src/type/components.ts