reinforceSelection中默认加上createAt的投影
This commit is contained in:
parent
c23b724e4d
commit
5e803ab128
|
|
@ -29,6 +29,9 @@ function getOperationRewriters() {
|
|||
*/
|
||||
function reinforceSelection(schema, entity, selection) {
|
||||
var filter = selection.filter, data = selection.data, sorter = selection.sorter;
|
||||
Object.assign(data, {
|
||||
'$$createAt$$': 1,
|
||||
}); // 有的页面依赖于其它页面取数据,有时两个页面的filter的差异会导致有一个加createAt,有一个不加,此时可能产生前台取数据不完整的异常。先统一加上
|
||||
var checkNode = function (projectionNode, attrs) {
|
||||
attrs.forEach(function (attr) {
|
||||
var _a;
|
||||
|
|
|
|||
|
|
@ -35,6 +35,9 @@ function getOperationRewriters<ED extends EntityDict>() {
|
|||
*/
|
||||
export function reinforceSelection<ED extends EntityDict>(schema: StorageSchema<ED>, entity: keyof ED, selection: ED[keyof ED]['Selection']) {
|
||||
const { filter, data, sorter } = selection;
|
||||
Object.assign(data, {
|
||||
'$$createAt$$': 1,
|
||||
}); // 有的页面依赖于其它页面取数据,有时两个页面的filter的差异会导致有一个加createAt,有一个不加,此时可能产生前台取数据不完整的异常。先统一加上
|
||||
|
||||
const checkNode = (projectionNode: ED[keyof ED]['Selection']['data'], attrs: string[]) => {
|
||||
attrs.forEach(
|
||||
|
|
|
|||
Loading…
Reference in New Issue