# vue3_componstion_ts_pet_admin **Repository Path**: zhao-jingtao-l/vue3_componstion_ts_pet_admin ## Basic Information - **Project Name**: vue3_componstion_ts_pet_admin - **Description**: Vue3组合式api+ts 商城后台管理系统 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-12-30 - **Last Updated**: 2025-06-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: vue3, VueRouter, Vuex, Axios, TypeScript ## README # 精致宠物后台管理搭建项目基础搭建流程 ## 一、项目创建 ### 1. vite创建项目 ```sh # npm 6.x npm init vite@latest 项目名称 --template vue # npm 7+, 需要额外的双横线: npm init vite@latest 项目名称 -- --template vue #或者直接了当,接下来自行选择项目模板 npm create vite@latest ``` ### 2. 安装依赖 ```sh cd 项目目录 npm install // 安装项目依赖 ``` ### 3. 运行项目查看 ```sh npm run dev ``` ## 二、创建api层 ### 1. 安装axios ```sh npm install axios -S ``` ### 2. axios封装 ##### 3.1 service/axios.ts