mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-11-07 09:28:53 +08:00
refactor: 重构组件逻辑与样式优化
- 在 App.vue 中重构站点信息的获取与应用逻辑,提升代码可读性与维护性。 - 更新 Search.vue 组件,优化搜索框的样式与结构,增强用户体验。 - 在 element.scss 中注释掉不再使用的样式,并新增确认收货按钮的样式。 - 改进多个页面的布局与样式,确保响应式设计的一致性与美观性。 - 更新订单相关组件的按钮样式,提升视觉一致性与可用性。
This commit is contained in:
@@ -1,2 +1,12 @@
|
||||
export default (url) =>()=>import(`@/views/${url}.vue`)
|
||||
const viewContext = require.context("@/views", true, /\.vue$/);
|
||||
|
||||
/** 后端菜单 frontRoute 与前端实际路径不一致时的映射 */
|
||||
const VIEW_ALIASES = {
|
||||
"live/list": "promotions/live/live",
|
||||
};
|
||||
|
||||
function resolveViewPath(url) {
|
||||
return VIEW_ALIASES[url] || url;
|
||||
}
|
||||
|
||||
export default (url) => () => Promise.resolve(viewContext(`./${resolveViewPath(url)}.vue`));
|
||||
|
||||
Reference in New Issue
Block a user