摘要: ![](https://img2023.cnblogs.com/blog/1940615/202304/1940615-20230403101354582-1387034555.png) 阅读全文
posted @ 2023-04-03 10:14 LeoShi2020 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 从一个大的数组或对象中提取个别值使用 数组赋值逆向 let obj = reactive({ name: "张三", age: 20 }) let { name, age } = toRefs(obj); const btn = () => { name.value = '李四'; console. 阅读全文
posted @ 2023-04-03 01:28 LeoShi2020 阅读(10) 评论(0) 推荐(0) 编辑
摘要: # 安装组件 pnpm install -D unplugin-vue-components unplugin-auto-import # 修改配置文件 // vite.config.ts import { defineConfig } from 'vite' import AutoImport f 阅读全文
posted @ 2023-04-03 01:11 LeoShi2020 阅读(48) 评论(0) 推荐(0) 编辑
摘要: # 安装组件 pnpm install @types/node // vite.config.ts import path from "path"; export default defineConfig({ plugins: [ ... ], resolve: { alias: { "@": pa 阅读全文
posted @ 2023-04-03 00:14 LeoShi2020 阅读(60) 评论(0) 推荐(0) 编辑