'use strict'; /** * 将「订单管理 → 订单」菜单由占位页 views/Generic.vue * 指向真实页面 views/Order/Index.vue(前端已实现订单列表/编辑/状态流转)。 * 幂等:仅当 component 仍为占位页时才更新。 */ module.exports = { async up(queryInterface) { await queryInterface.sequelize.query( `UPDATE menus SET component = ? WHERE name = ? AND path = ? AND type = 2 AND component = ?`, { replacements: ['views/Order/Index.vue', '订单', '/order', 'views/Generic.vue'], }, ); }, async down(queryInterface) { await queryInterface.sequelize.query( `UPDATE menus SET component = ? WHERE name = ? AND path = ? AND type = 2`, { replacements: ['views/Generic.vue', '订单', '/order'] }, ); }, };