alibaba / alibaba/ice

ice 小程序页面配置 definePageConfig 不生效

Open
#6,263 3 comments 0 reactions 1 assignee Claimed by @ChrisCindy View on GitHub
bug PR Welcome
Dominant language
TypeScript
Stars
18.6k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

小程序页面自定义页面配置,使用definePageConfig不生效,build后的产物对应json中并没有生效
// index.jsx
import { definePageConfig } from 'ice';
export const pageConfig = definePageConfig(() => ({
defaultTitle: '我的页面',
transparentTitle: 'always',
}));

### Expected behavior

defaultTitle: '我的页面',
transparentTitle: 'always',
可以生效

### Actual behavior

_No response_

### Version of ice.js

"ice": "^3.7.72",

### Content of build.json or ice.config.mts

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.