摘要: 安装 官网:https://vue-i18n.intlify.dev/api/general.html pnpm add vue-i18n@9 使用 // @/locale/index.ts import appConfig from "@/configure/app.config.ts"; imp 阅读全文
posted @ 2023-10-03 23:11 灵火 阅读(743) 评论(0) 推荐(0) 编辑
摘要: 官方说明:https://blog.jetbrains.com/webstorm/2018/01/working-with-vue-js-in-webstorm/#:~:text=We can debug our application,and start the debug session. 打开 阅读全文
posted @ 2023-10-03 22:13 灵火 阅读(853) 评论(0) 推荐(0) 编辑
摘要: 教程基于 vite 和 vue3-ts 前往 tsconfig.json 修改 compilerOptions 选项,如果没有以下参数就自己添加: { "compilerOptions": { "baseUrl": "./src", "paths": { "@/*": [ "src/*" ] } } 阅读全文
posted @ 2023-10-03 22:06 灵火 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 安装 pinia 官网: https://pinia.vuejs.org/ pnpm add pinia 使用 新建 pinia 实例 // @/store/index.ts import {createPinia} from "pinia"; import useUserStore from "@ 阅读全文
posted @ 2023-10-03 21:55 灵火 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 安装 vue-router 官网: https://router.vuejs.org/installation.html pnpm add vue-router@4 使用 vue-router 创建自己的 router // @/route/index.ts import {createRouter 阅读全文
posted @ 2023-10-03 21:44 灵火 阅读(62) 评论(0) 推荐(0) 编辑