Skip to content

处理vite无法启动的问题 #365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

处理vite无法启动的问题 #365

wants to merge 14 commits into from

Conversation

3ddbz
Copy link
Contributor

@3ddbz 3ddbz commented Jul 19, 2025

No description provided.

3ddbz added 13 commits July 15, 2025 20:38
- 添加 "type": "module" 到 package.json
- 更新 vite、vue、element-plus 等主要依赖版本
- 移除 vite-plugin-commonjs 依赖
- 更新 ESLint、TypeScript 相关配置
- 新增 tsconfig.app.json 和 tsconfig.vitest.json 文件
- 更新原有的 tsconfig.json 文件结构
- 修改 tsconfig.node.json 文件配置
- 移除 vite-plugin-commonjs 插件
- 添加 Vitest 配置文件
- 新增 v-fallback 指令,用于处理图片加载失败时显示默认图片
- 在 VolForm、Index、List 和 UserInfo 组件中使用该指令替换原有的错误处理逻辑
- 在 main.js 中注册全局指令
- 移除各组件中的 defaultImg 和 errorImg 相关代码
- 将 lodash 替换为 lodash-es,减少打包体积
- 在多个组件中将 ::v-deep 选择器替换为 :deep 选择器
- 不会影响功能,仅修改样式选择器
- 新增 .env 和 .env.production 文件,分别配置开发和生产环境的 API URL
- 修改 http.js 文件,使用环境变量替代硬编码的 API URL
- 更新 vite.config.ts 文件,引入环境变量配置
- 优化模板结构,提高代码可读性和维护性
- 使用 ElScrollbar 组件包裹菜单,解决菜单滚动问题
- 重构 VolElementMenuChild 组件,使用 computed 属性动态决定组件类型
- 调整了顶部栏各个元素的样式和布局方式
- 优化了用户信息、设置按钮等元素的样式
- 将 ::v-deep 替换为 :deep,以适应 Vue 3 的新语法
- 涉及文件:node_form.vue 和 form7.vue
@xiazhaozhao
Copy link

xiazhaozhao commented Jul 19, 2025 via email

@cq-panda
Copy link
Owner

cq-panda commented Jul 19, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants