fix(editor): 通过nav切换页面时,CRUD2组件修改url参数导致页面参数默认值异常的问题 (#9381)

* fix(editor): 事件动作 - 变量赋值页面变量名称统一

* fix(editor): 通过nav切换页面时,CRUD2组件修改url参数导致页面参数默认值异常的问题

---------

Co-authored-by: wutong25 <wutong25@baidu.com>
This commit is contained in:
wutong 2024-01-09 21:29:08 +08:00 committed by GitHub
parent e2a0e2c57b
commit b163aa947d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -79,7 +79,7 @@ export class RootRenderer extends React.Component<RootRendererProps> {
}
if (props.location !== prevProps.location) {
this.store.updateLocation(props.location);
this.store.updateLocation(props.location, this.props.env?.parseLocation);
}
if (props.context !== prevProps.context) {

View File

@ -1293,7 +1293,7 @@ export const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
mode: 'horizontal',
options: [
{label: '组件变量', value: 'cmpt'},
{label: '页面变量', value: 'page'},
{label: '页面参数', value: 'page'},
{label: '内存变量', value: 'app'}
],
value: /^appVariables/.test(path) // 只需要初始化时更新value
@ -1541,7 +1541,7 @@ export const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
})
]
},
// 页面变量
// 页面参数
{
type: 'container',
visibleOn: '__actionSubType === "page"',
@ -1552,8 +1552,8 @@ export const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
className: 'p-none',
body: [
getCustomNodeTreeSelectSchema({
label: '页面变量',
rootLabel: '页面变量',
label: '页面参数',
rootLabel: '页面参数',
options: pageVariableOptions
}),
getSchemaTpl('formulaControl', {