# vue3+ts **Repository Path**: SXX1997/vue3 ## Basic Information - **Project Name**: vue3+ts - **Description**: vue3+ts+vuex - **Primary Language**: TypeScript - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2021-06-13 - **Last Updated**: 2021-06-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # my-project ## Project setup ``` yarn install ``` ### Compiles and hot-reloads for development ``` 开发环境 yarn dev src下项目名称 ``` ### Compiles and hot-reloads for test ``` 测试环境 yarn dev src下项目名称 打包所有项目 node ./buildTest.ts ``` ### Compiles and minifies for production ``` 生产环境 yarn pro src下项目名称 打包所有项目 node ./buildPro.ts ``` ### Lints and fixes files ``` yarn lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ## vue3 + ts + vuex ### 该项目支持直接 多项目下开发 只需要将src目录下的myProject拷贝一份出来放到src下换一个名称就可以变成另一个项目了 ### 需要在config/projectJson里配置项目的一下基本属性 ### 已将打包配置好了 打包后放到nginx下可以参考我这边的nginx ### 使用了element-ui vue3 ts vuex axios 都已经分装好 可以直接使用 ### 国际化的使用 ##### 在自己项目中的locale配置不同语言的文件后放入到setupI18n.ts中 ###### 在utils/globalTools中getLocale方法中添加不同语言的判断 html中使用$t('menus.home') ts中使用const { t } = useI18n() t('menus.home')