Homepage making | preview address

function

  • Encapsulating the data flow of the DVA framework, simple requests are not defined in models and services
  • Encapsulate the data model simulation, can be independent of the background development foreground function
  • Encapsulates paging requests and simplifies and normalizes paging logic
  • Encapsulates the FETCH request and ADAPTS to a variety of interactive requests with the background. Body parameter parameter path parameter, dynamic request header, interception before and after the request
  • Extended ANTD wrote a lot of practical UI, through a configuration generation can be generated, background CRUD three sets
  • The directory structure is divided by service modules to achieve minimum coupling
  • Some common uses of widgets
  • Lots of well-designed pages and interactive scenarios
  • Dva-boot scaffolding encapsulation function
  • Global exception handling, global request interception, common configuration extraction

The directory structure

. ├ ─ ─ the public# resource files that do not participate in compilation├ ─ ─ the SRC# main program directory│ ├ ─ ─ index. JsProgram launch and render entry files│ ├ ─ ─ the components# Global common Components│ ├ ─ ─ layouts# Page structure components│ │ ├ ─ ─ BasicLayout# Basic layout│ │ └ ─ ─ OtherLayoutLayout components are adjusted for specific functions and referenced in routing configurations│ ├ ─ ─ routes# Dynamic routing directory (MVC structure of one folder per function)│ │ ├ ─ ─ index. JsRoute configuration file│ │ ├ ─ ─ the Home# Function module│ │ ├─ index.jsRoute configuration file│ │ ├─ AssetsA static resource file that belongs to this module alone│ │ ├─ Components# page component│ │ ├─ Model# dva model│ │ ├─ Service# dva service│ ├ ─ garbage **# child routing (same directory structure as parent)│ │ └ ─ ─ Login# Function module│ │ ├ ─ ─ index. JsRoute configuration file│ │ ├ ─ ─ assetsA static resource file that belongs to this module alone│ │ ├ ─ ─ the components# page component│ │ ├ ─ ─ model# dva model│ │ ├ ─ ─ the service# dva service│ ├ ─ garbage **# child routing (same directory structure as parent)│ ├ ─ ─ utils# tools│ └ ─ ─ assets# resource file│ ├ ─ ─ fonts# font & font icon│ ├ ─ ─ images# image│ └ ─ ─ styles# global style
Copy the code

screenshots