undefined控制

This commit is contained in:
BOE\10867418
2023-08-25 09:28:18 +08:00
parent 0d6bc6bd55
commit a243649236
8 changed files with 62 additions and 62 deletions

View File

@@ -379,8 +379,8 @@ export default {
orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
routerName: state.routerName,
createName: state.createName,
startTime: state.publishTime[0]+" 00:00:01",
endTime: state.publishTime[1]+" 23:59:59",
startTime: typeof state.publishTime[0] === 'undefined' ? null : state.publishTime[0] + " 00:00:01",
endTime: typeof state.publishTime[1] == 'undefined' ? null : state.publishTime[1] + " 23:59:59",
// publishTime: state.publishTime,
name: state.name,
});
@@ -427,8 +427,8 @@ export default {
const params = {
createName: state.createName,
// publishTime: state.publishTime,
startTime: state.publishTime[0]+" 00:00:01",
endTime: state.publishTime[1]+" 23:59:59",
startTime: typeof state.publishTime[0] === 'undefined' ? null : state.publishTime[0] + " 00:00:01",
endTime: typeof state.publishTime[1] == 'undefined' ? null : state.publishTime[1] + " 23:59:59",
routerName: state.routerName,
orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
};
@@ -469,8 +469,8 @@ export default {
const params = {
createName: state.createName,
// publishTime: state.publishTime,
startTime: state.publishTime[0]+" 00:00:01",
endTime: state.publishTime[1]+" 23:59:59",
startTime: typeof state.publishTime[0] === 'undefined' ? null : state.publishTime[0] + " 00:00:01",
endTime: typeof state.publishTime[1] == 'undefined' ? null : state.publishTime[1] + " 23:59:59",
routerName: state.routerName,
orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
};