parent
fe268d5f15
commit
e347a0d17b
@ -29,7 +29,6 @@ export class WaybillsController {
|
|||||||
if (Number(margingTop)) {
|
if (Number(margingTop)) {
|
||||||
settings['margingTop'] = Number(margingTop);
|
settings['margingTop'] = Number(margingTop);
|
||||||
} else {
|
} else {
|
||||||
// 查询当前用户信息
|
|
||||||
const currentUser = await ctx.db.getRepository('users').findOne({ filter: { id: ctx.state.currentUser.id } });
|
const currentUser = await ctx.db.getRepository('users').findOne({ filter: { id: ctx.state.currentUser.id } });
|
||||||
settings['margingTop'] = Number(currentUser?.pdf_top_margin) || 0;
|
settings['margingTop'] = Number(currentUser?.pdf_top_margin) || 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user