test: 💍 Rax 出码的 demo2 的两个数据源之间有依赖关系, 故设置为 isSync=true

This commit is contained in:
牧毅 2020-08-18 23:32:13 +08:00
parent 332a473cd2
commit bd8714810a
2 changed files with 4 additions and 0 deletions

View File

@ -198,6 +198,7 @@ class Home$$Page extends Component {
return { return {
method: 'GET', method: 'GET',
uri: 'https://shs.alibaba-inc.com/mock/1458/demo/user', uri: 'https://shs.alibaba-inc.com/mock/1458/demo/user',
isSync: true,
}; };
}, },
dataHandler: function (response) { dataHandler: function (response) {
@ -218,6 +219,7 @@ class Home$$Page extends Component {
return { return {
method: 'GET', method: 'GET',
uri: __$$context.state.user.ordersApiUri, uri: __$$context.state.user.ordersApiUri,
isSync: true,
}; };
}, },
dataHandler: function (response) { dataHandler: function (response) {

View File

@ -84,6 +84,7 @@
options: { options: {
method: 'GET', method: 'GET',
uri: 'https://shs.alibaba-inc.com/mock/1458/demo/user', uri: 'https://shs.alibaba-inc.com/mock/1458/demo/user',
isSync: true,
}, },
dataHandler: { dataHandler: {
type: 'JSFunction', type: 'JSFunction',
@ -100,6 +101,7 @@
type: 'JSExpression', type: 'JSExpression',
value: 'this.state.user.ordersApiUri', value: 'this.state.user.ordersApiUri',
}, },
isSync: true,
}, },
dataHandler: { dataHandler: {
type: 'JSFunction', type: 'JSFunction',