mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
service命中改回去
This commit is contained in:
parent
90926bfeb2
commit
2923c8c9d6
@ -8,7 +8,7 @@ import {observer} from 'mobx-react';
|
||||
import {ServiceStore, IServiceStore} from '../../store/service';
|
||||
|
||||
@Renderer({
|
||||
test: /(^|\/)form(?:\/.+)?\/control\/(?:\d+\/)?service$/,
|
||||
test: /(^|\/)form\/(.*)\/service$/,
|
||||
weight: -100,
|
||||
storeType: ServiceStore.name,
|
||||
storeExtendsData: false,
|
||||
@ -25,7 +25,9 @@ export class ServiceRenderer extends BasicService {
|
||||
componentDidMount() {
|
||||
const {formInited, addHook} = this.props;
|
||||
|
||||
if (formInited) {
|
||||
// form层级下的所有service应该都会走这里
|
||||
// 但是传入props有可能是undefined,所以做个处理
|
||||
if (formInited !== false) {
|
||||
super.componentDidMount();
|
||||
} else {
|
||||
addHook && addHook(this.initFetch, 'init');
|
||||
|
Loading…
Reference in New Issue
Block a user