You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zcx bae60b8152
forth commit
6 months ago
..
build forth commit 6 months ago
public forth commit 6 months ago
src forth commit 6 months ago
types forth commit 6 months ago
.eslintignore forth commit 6 months ago
.eslintrc.js forth commit 6 months ago
.gitignore forth commit 6 months ago
.stylelintignore forth commit 6 months ago
README.md forth commit 6 months ago
index.html forth commit 6 months ago
package-lock.json forth commit 6 months ago
package.json forth commit 6 months ago
postcss.config.js forth commit 6 months ago
prettier.config.js forth commit 6 months ago
stylelint.config.js forth commit 6 months ago
tsconfig.json forth commit 6 months ago
vite.config.ts forth commit 6 months ago
yarn.lock forth commit 6 months ago

README.md

学习文档

部署步骤

  1. 修改constants.ts中的BASE_URL
  2. vite build
  3. 将dist部署到nginx

配置解释

  1. env.development 开发环境配置
  2. eslintrc.js 代码规范化提示
  3. vite.config.js vite 开发服务器配置

常见问题

变量

https://blog.csdn.net/qq_41636947/article/details/117907448

antd的css引入方式

在index.html里面引入的cdn

cdn

https://cdn.jsdelivr.net/npm/ant-design-vue@3.2.20/dist/ https://cdn.staticfile.org/ant-design-vue/3.2.20/antd.min.css

public文件夹内容在build后会自动打到dist中