python_jiajiao/web
2024-03-13 15:33:48 +08:00
..
build commit 2023-07-01 16:39:31 +08:00
public commit 2023-07-01 16:39:31 +08:00
src Update detail.vue 2024-03-13 15:33:48 +08:00
types commit 2023-07-01 16:39:31 +08:00
.eslintignore commit 2023-07-01 16:39:31 +08:00
.eslintrc.js commit 2023-07-01 16:39:31 +08:00
.gitignore commit 2023-07-01 16:39:31 +08:00
.stylelintignore commit 2023-07-01 16:39:31 +08:00
index.html commit 2023-07-01 16:39:31 +08:00
package-lock.json commit 2023-07-01 16:39:31 +08:00
package.json commit 2023-07-01 16:39:31 +08:00
postcss.config.js commit 2023-07-01 16:39:31 +08:00
prettier.config.js commit 2023-07-01 16:39:31 +08:00
README.md commit 2023-07-01 16:39:31 +08:00
stylelint.config.js commit 2023-07-01 16:39:31 +08:00
tsconfig.json commit 2023-07-01 16:39:31 +08:00
vite.config.ts commit 2023-07-01 16:39:31 +08:00
yarn.lock commit 2023-07-01 16:39:31 +08:00

学习文档

部署步骤

  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中