10 2023 档案
摘要:一、问题描述 项目build之后,点击dist文件中的index.html文件,打开是空白,提示以下信息。 二、产生原因及解决方法 1.文件路径不对 vite默认根目录"/",file://…访问需要基于index.html的路径,需要再vit.config.js中进行以下配置 2.跨域问题 vit
阅读全文
摘要:一、下载安装swiper 安装:pnpm install swiper 使用你熟悉的方式来安装(yarn npm cnpm) 二、在项目中引入swiper 1.main.js文件 点击查看代码 import 'swiper/swiper-bundle.css'; import "swiper/css
阅读全文
摘要:本地环境搭建 一、安装chocolatey 下载 https://chocolatey.org/install#individual 根据提示在PowerShew下载安装 二、使用 choco 命令安装 themtekit 命令 安装 choco install themekit 查看是否安装完成
阅读全文