react+dva2.1 version, how to make a front-end route interceptor function RouterConfig ({history, app}) { const routes = [ { path: user , models: () => [import( . models user )], component: () => import( . routes index ), }, { pat...
the "Application enabling platform " page is expanded by default. Radio selects a row in the table, id as a parameter, and the page that needs to be passed to the enterprise information. In topic, it is impossible to pass parameters in the form of call...
The loading effect is handled uniformly in dva, but loading cannot be cancelled when an error occurs in the request. What should I do? ...
Code first as a token of respect const routes = [ { path: , exact: true, component: Main, }, { path: company , exact: true, component: CompanyIntroduce, routes:[ ...
import React, { Component } from react import { BrowserRouter as Router, Route, Switch, Redirect } from react-router-dom import Path from .. containers page import Login from .. containers login const LoginRoute = ({ component: Componen...
the company needs me to write a query page with static data to show people. My problem now is that there is no problem with a single conditional query. If my first input is correct, the second input error should not be queried. There are multiple condit...
topic description there is a table to display color information, and each row has a drop-down selection component that can be used to select a variety of colors (there may be thousands of color data). There is also a button, click the button to add a ...
when using wxcharts, an error is displayed when all y-axis values are 0 columnChart = new WXCharts({ canvasId: columnCanvas , type: column , categories: this.workHours.categories, series: [{ data: this.workHours.data, ...
the document is like this var myInterceptor = axios.interceptors.request.use(function () { *...* }); axios.interceptors.request.eject(myInterceptor); my Vue.prototype.$http = axios is in login.vue, so is this correct? var myInterceptor = this.$http....
has the following code: let result = { data: { values: [], } }; try { let baseInfo = await baseinfoModel.getSystemInfo(); if (baseInfo === null) { return null; } else { baseInfo.forEach(fun...