- 版本:【 "JYadmin-react-antd": "^1.0.0"】
- 版本説明:基于react+antd封裝
- 著作權所有:微信公眾號【微新悅】
- 更多it教程,請關注上述微信公眾號!!!
原文鏈接:https://www.weixinyue.cn/frontCourses/#/JYAdminReactAntd1.0/2(閱讀效果更佳)
- 第一步:在pages檔案夾下新增一個index首頁模塊和404頁面
- 第二步:改造根目錄app.js
說明:
<Route path=/ /> 1、實作地址欄不輸入任何路由,重定向到index首頁 2、@/layout/main/main.js layout主檔案
- 第三步:撰寫管理系統基礎layout(使用class組件,后期使用function組件改造)
- @/layout/main/main.js代碼如下

- 頁面效果如下

說明: import Container from '@/layout/container/' =>右側內容區容器 import Menu from '@/layout/main/components/menu/ => 左側選單模塊 import Heard from '@/layout/main/components/heard => 頭部模塊 import allRouting from '@/router/allRouting.js' => 所有路由模塊
互動效果:如下視頻
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/241807.html
標籤:其他
上一篇:關于rem布局使用多倍圖的問題
下一篇:LazyMan
