mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-09-21 12:22:03 +08:00
feat(manager): 增强运营后台表单校验与页面体验
- 富文本编辑器支持 Vue3 modelValue 双向绑定 - 补充 lazyLoading 路径别名,跳过已弃用的分销等级菜单 - 完善文章、优惠券活动、砍价活动、商品参数等表单校验 - 修复文章管理布局遮挡、店铺选会员弹窗及操作列分隔符显示问题 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4,6 +4,15 @@ import Cookies from "js-cookie";
|
||||
|
||||
let util = {};
|
||||
|
||||
/** 已弃用、前端未实现的菜单 frontRoute,注册路由时跳过 */
|
||||
const DEPRECATED_FRONT_ROUTES = new Set([
|
||||
"distribution/distrbutionGrade",
|
||||
]);
|
||||
|
||||
function isDeprecatedMenu(menu) {
|
||||
return menu.frontRoute && DEPRECATED_FRONT_ROUTES.has(menu.frontRoute);
|
||||
}
|
||||
|
||||
/** 动态菜单路由 name,用于登出或重新注册时清理 */
|
||||
util.dynamicRouteNames = [];
|
||||
|
||||
@@ -383,6 +392,9 @@ util.initRouterNode = function(routers, data) {
|
||||
// data为所有子菜单数据
|
||||
|
||||
for (let item of data) {
|
||||
if (isDeprecatedMenu(item)) {
|
||||
continue;
|
||||
}
|
||||
const menu = Object.assign({}, item);
|
||||
const hasChildren = item.children && item.children.length > 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user