-
Notifications
You must be signed in to change notification settings - Fork 1.3k
处理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
3ddbz
wants to merge
14
commits into
cq-panda:master
Choose a base branch
from
3ddbz:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
处理vite无法启动的问题 #365
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 添加 "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-if 和 v-for 到不同层级
- 将 ::v-deep 替换为 :deep,以适应 Vue 3 的新语法 - 涉及文件:node_form.vue 和 form7.vue
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.