mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
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:
parent
e2a0e2c57b
commit
b163aa947d
@ -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) {
|
||||
|
@ -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', {
|
||||
|
Loading…
Reference in New Issue
Block a user