mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-10-29 07:56:12 +08:00
fix: remove unnecessary condition
This commit is contained in:
@ -121,7 +121,7 @@ export function useSlotOption(slots: Slots, onSlotsChange: () => void) {
|
|||||||
// Traverse to the parent of the leaf, cloning or creating along the way
|
// Traverse to the parent of the leaf, cloning or creating along the way
|
||||||
let cur: Record<string, unknown> | undefined = root;
|
let cur: Record<string, unknown> | undefined = root;
|
||||||
for (let i = 0; i < path.length - 1; i++) {
|
for (let i = 0; i < path.length - 1; i++) {
|
||||||
cur = cur && ensureChild(cur, path[i]);
|
cur = ensureChild(cur, path[i]);
|
||||||
if (!cur) {
|
if (!cur) {
|
||||||
return; // Blocked by a primitive — skip this key
|
return; // Blocked by a primitive — skip this key
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,6 +13,7 @@ export default mergeConfig(
|
|||||||
provider: "v8",
|
provider: "v8",
|
||||||
reporter: ["text", "lcov", "html"],
|
reporter: ["text", "lcov", "html"],
|
||||||
include: ["src/**/*.{ts,tsx,js,jsx,vue}"],
|
include: ["src/**/*.{ts,tsx,js,jsx,vue}"],
|
||||||
|
exclude: ["src/types.ts"],
|
||||||
reportsDirectory: "coverage/browser",
|
reportsDirectory: "coverage/browser",
|
||||||
},
|
},
|
||||||
browser: {
|
browser: {
|
||||||
|
|||||||
Reference in New Issue
Block a user