# vue3后台基础模板 **Repository Path**: hhdych_admin/vue3-ts ## Basic Information - **Project Name**: vue3后台基础模板 - **Description**: vue3+typescript+elementplus后台基础模板 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-05-24 - **Last Updated**: 2022-06-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目管理后台 # 项目要求 - nodejs14以上 - vue3 以上 - typescript - elementui - mockjs - axios - vuex - vuex-persist - vue-router # 功能 ## 多环境配置 - .env.development 开发环境 - .env.production 生产环境 配置文件中,为了防止不必要的数据暴露,在配置文件中的配置参数都要以VITE_开始。然后在项目通以:import.meta.env.[key]的形式进行获取 ## 全局功能 - 国际化 在src/plugins/locales中添加对应的值。其中,zh-cn.ts对应的是中文,en.ts对应的英文。 添加完参数数据后,在页面上通过{{ $t("menu.home") }}方式进行展示 - 动态路由,注意接口中返回的页面路径地址要以views为根目录后的地址 - axios请求 在util/request.ts中进行axios实例的创建。然后通过interceptor/htto-interceptor.ts进行请求拦截处理 - mock模拟请求 - elementplus页面UI