diff --git a/packages/cli/default.steedos.config.js b/packages/cli/default.steedos.config.js index 1b74e91855..2f6e55fd49 100644 --- a/packages/cli/default.steedos.config.js +++ b/packages/cli/default.steedos.config.js @@ -20,7 +20,7 @@ process.env.STEEDOS_UNPKG_URL = process.env.STEEDOS_UNPKG_URL.replace(/\/+$/, " if(_.isEmpty(process.env.STEEDOS_AMIS_VERSION)) { - process.env.STEEDOS_AMIS_VERSION = '3.2.0'; + process.env.STEEDOS_AMIS_VERSION = '2.9.0'; } if(_.isEmpty(process.env.STEEDOS_AMIS_URL)) { @@ -29,7 +29,7 @@ if(_.isEmpty(process.env.STEEDOS_AMIS_URL)) { process.env.STEEDOS_AMIS_URL = process.env.STEEDOS_AMIS_URL.replace(/\/+$/, ""); if(_.isEmpty(process.env.STEEDOS_PUBLIC_PAGE_ASSETURLS)) { - process.env.STEEDOS_PUBLIC_PAGE_ASSETURLS = process.env.STEEDOS_UNPKG_URL + "/@steedos-widgets/amis-object@1.3.4-beta.9/dist/assets.json"; + process.env.STEEDOS_PUBLIC_PAGE_ASSETURLS = process.env.STEEDOS_UNPKG_URL + "/@steedos-widgets/amis-object@1.3.4-beta.10/dist/assets.json"; } if(_.isEmpty(process.env.SERIALIZER)){ diff --git a/services/service-plugin-amis/main/default/client/amis.render.client.js b/services/service-plugin-amis/main/default/client/amis.render.client.js index 4b368b8814..af5aaff92f 100644 --- a/services/service-plugin-amis/main/default/client/amis.render.client.js +++ b/services/service-plugin-amis/main/default/client/amis.render.client.js @@ -226,6 +226,7 @@ // } // return div; // }, + // 如果这里不配置env.notify,那么会走amis 默认的env.notify,它会造成随机把toast组件dom插入到不同的scope容器内(应该是插入到最后一个加载的scope),这在苹果手机上可能会造成弹出的通知z-index不生效的情况,出现通知被档住的问题 notify: (type, msg)=>{ if(msg.props?.schema.tpl){ SteedosUI.message[type](msg.props?.schema.tpl)