-
Notifications
You must be signed in to change notification settings - Fork 358
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
fix: 修复文案为空时 i18n 下的文案为 null 导致出码异常 #1211
base: develop
Are you sure you want to change the base?
Conversation
新增判断条件,默认为空对象
WalkthroughThis change enhances error handling in the Changes
Sequence Diagram(s)sequenceDiagram
participant V as Main.vue
participant M as metaData
V->>M: Check if metaData.i18n exists
alt Exists
V->>M: Iterate over keys and assign {} for null/undefined values
else Not exists
V->>M: Initialize metaData.i18n as {}
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
ERR_PNPM_OPTIONAL_DEPS_REQUIRE_PROD_DEPS Optional dependencies cannot be installed without production dependencies 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
新增判断条件,默认为空对象
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
What is the current behavior?
Issue Number: N/A
What is the new behavior?
出码时,确保 i18n 文案内容不为 null。
友情提示:如果出码文案为空 数组,可以找到 t_i18n_entry 表检查是否有 host_type = app & host_id = 1 的数据
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit