Merge pull request #461 from RickCole21/master

form下service正则优化
This commit is contained in:
liaoxuezhi 2020-02-26 13:30:14 +08:00 committed by GitHub
commit eb6773fbb1

View File

@ -8,7 +8,7 @@ import {observer} from 'mobx-react';
import {ServiceStore, IServiceStore} from '../../store/service';
@Renderer({
test: /(^|\/)form\/(.*)\/service$/,
test: /(^|\/)form(?:\/.+)?\/control\/(?:\d+\/)?service$/,
weight: -100,
storeType: ServiceStore.name,
storeExtendsData: false,
@ -64,10 +64,10 @@ export class ServiceRenderer extends BasicService {
const finnalSchema = store.schema ||
schema || {
controls,
tabs,
feildSet
};
controls,
tabs,
feildSet
};
if (
finnalSchema &&
!finnalSchema.type &&