# Vue3_ts_Music_Componstion_Mobile **Repository Path**: zhao-jingtao-l/vue3_ts_-music_-componstion_-mobile ## Basic Information - **Project Name**: Vue3_ts_Music_Componstion_Mobile - **Description**: 基于 Vue3组合式API + ts 的网易云移动端项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-01-13 - **Last Updated**: 2025-06-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: vue3, VueRouter, Pinia, TypeScript, Axios ## README # 网易云移动端搭建项目基础搭建流程 **接口文档:** 管理后台本地接口地址: http://localhost:3001/admindoc/ (需要开启本地服务器) **项目的baseUrl 地址:** http://47.94.148.165/admin ## 一、项目创建 ### 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