Skip to content

Commit 3e5a814

Browse files
committed
perf: 移除无用的赋值
1 parent baa058e commit 3e5a814

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/context.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,7 @@ export class PageContext {
419419

420420
const { pages: oldPages, subPackages: oldSubPackages, tabBar: oldTabBar } = cjParse(content || '{}') as CommentObject
421421

422-
const { pages: _, subPackages: __, tabBar: ___, ...others } = this.pagesGlobConfig || {}
423-
424-
const pageJson = { ...others }
422+
const { pages: _, subPackages: __, tabBar: ___, pageJson } = this.pagesGlobConfig || {}
425423

426424
const currentPlatform = platform.toUpperCase()
427425

0 commit comments

Comments
 (0)