# fontAndThemeVue3Template **Repository Path**: klus-liang/font-and-theme-vue3-template ## Basic Information - **Project Name**: fontAndThemeVue3Template - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-24 - **Last Updated**: 2022-04-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vue 3 + Vite 基于vue3 + element puls + postcss-pxtorem 实现 自适应电脑分辨率 全局字体大小 黑白主题 使用postcss-pxtorem自动将px转rem 1rem = 100px 最小子自适应尺寸为1280,可自行在flexible.js中设置 已安装vueRouter+VueX+Axios ## Api调用 // 在组件中引入api.js ``` import api from '@/api' api.user.login().then((res) => { // 处理数据 }.catch((error) => { // 抛出异常 }) ``` // user.js ``` login(data) { let params = { method: 'post', url: `/app/login`, data: JSON.stringify(data) } return http(params) } ``` ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ``` npm run dev ``` ### Compiles and minifies for production ``` npm run build ```