Commit 429fc174 authored by Xuguangxing's avatar Xuguangxing

feat: 处理导航配置用户名取值问题

parent 96b47128
......@@ -104,7 +104,7 @@ export default class EditorController extends Controller {
const where = {
updated_at: {
[ctx.model.Sequelize.Op.lt]: Date.now(),
[ctx.model.Sequelize.Op.gt]: new Date(Date.now() - 1000 * 60 * 60 * 24 * 365)
[ctx.model.Sequelize.Op.gt]: new Date(Date.now() - 1000 * 60 * 60 * 24 * 30)
},
tenantId: ctx.headers['qg-tenant-id'],
enable: 1,
......
......@@ -167,7 +167,7 @@ export default {
}
let author = '';
try {
author = JSON.parse(localStorage.getItem('user')).name;
author = JSON.parse(localStorage.getItem('user')).account;
} catch (e) {
author = '';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment