摘要: Student.ts //学生对象 export interface Student { id: number, name: string, sex?: string, birthday?: string } //服务器返回的数据 export interface Result<T> { code: 阅读全文
posted @ 2024-05-19 15:56 进击的学酥 阅读(3) 评论(0) 推荐(0) 编辑
摘要: vite.config.ts import {defineConfig} from 'vite' import vue from '@vitejs/plugin-vue' //配置Vite开发环境 export default defineConfig({ //使用vue插件 plugins: [v 阅读全文
posted @ 2024-05-19 15:55 进击的学酥 阅读(5) 评论(0) 推荐(0) 编辑
摘要: vue.config.js //导入defineConfig函数 const { defineConfig } = require('@vue/cli-service') //将defineConfig函数的结果导出 module.exports = defineConfig({ //转译依赖项 t 阅读全文
posted @ 2024-05-19 15:55 进击的学酥 阅读(3) 评论(0) 推荐(0) 编辑