# vue-mobile **Repository Path**: xfflwj/vue-mobile ## Basic Information - **Project Name**: vue-mobile - **Description**: ,,,,,,,,,,,, - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-23 - **Last Updated**: 2022-12-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vue3-Mobile 项目细节 ## 创建项目 - 打开命令行 - 输入指令 ```shell $ npm init vue@latest ``` ## 开启 `defineProps` 设置默认值的语法糖 - 在 `vite.config.ts` 文件中进行修改 ``` js export default defineConfig({ plugins: [vue({ reactivityTransform: true })], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } } }) ``` ## 下载 `scss` 包 - 如果你需要在项目中使用 `sass` 包 - 下载 `sass` 包 ```shell $ npm install sass -D ``` ## 准备一个全局 `scss` 文件 - 在 `src` 目录下新建 `styles` 文件夹 - 创建 `index.scss` 文件, 用于书写全局样式 - ** `main.ts` 内引入** ## 配置 `git` 环境 - 打开命令行, 切换目录到项目根目录 - 输入指令: `$ git init` - 进行第一次提交 [接口文档]http://121.89.205.189:3000/apidoc/