-
How to use symbol reference of Iconfont in dva
I can succeed with this https: www.jianshu.com p 293., but it is a font-class reference and is displayed in monochrome. I d like a color one.
dvahtmljs
...
-
How to put the component from const into return?
renderdphtmldvareturnapiBackend:
apiBackend
...
-
About the scaffolding of dva
Let me ask you a question. I use dva scaffolding to build the project.
I want to use browserHistory as the background interface, but the packaged project is blank and there is no error! If you change to use the default hashHistory, it will be fine....
-
Why is the data sent from editing in reactdva modified when it is modified?
< Form >
<FormItem
id="control-input"
label=""
...
-
How to cancel loading? when an error occurs in a dva request
The loading effect is handled uniformly in dva, but loading cannot be cancelled when an error occurs in the request. What should I do? ...
-
How does ant design customize form validation?
how does react ant use custom form validation?
1. Code
const Login = (
{
loading,
dispatch,
form: {
getFieldDecorator,
validateFieldsAndScroll
},
}
) => {
function handleOk() {
validateFieldsAndScroll((error...
-
After the ant-design-pro project npm run build, the browser opens and reports an error.
simply write a project with ant-design-pro, and write a server.js and npm run build packaged file in the root directory with the built-in mock API,. The dist directory is as follows:
server.js:
server.js302Cannot read property notifyCount of unde...
-
How to implement a simple routing login interception in dva2.1+react route 4. 0
if you want to do a login block in a public route, some routes need to log in to enter. Which god has an idea, please provide it. Thank you ....
-
Dva.js GettingStarted
there is a problem with the operation of dva GitHub demo
document address
https: github.com dvajs dva .
problem description
here is the code for the document, without any changes. npm start after reducers add does not play a role, only eff...
-
How to make effects update the state? of a component after an asynchronous callback
the reason why you need to update the component s state after an asynchronous callback is because
A value in state binds a pop-up window to the property used for display
The desired effect of is that updates the component state, after an asynchr...
-
How antd@3.2.1 deploys local icons
I use Xiaobai and dvi-cli to develop. I have checked most of the tutorials on local deployment icons on the Internet, but none of them are available. Ask for divine instruction! Picture description ...
-
Background data transfer
the data I clicked on the foreground page is passed to the model layer using dva and then called on other pages
I get it now, but the location of the video name of the later Table is always not Synchronize. I can only pass the data to him by clickin...
-
Infinitely calling ajax cannot be solved in dva framework
just came into contact with the dva framework. I judged in subscriptions that when the current route is entered, it should not be called only once. `subscriptions: {
getPageData({ dispatch, history }) {
return history.listen(({ pathname, query }) =&g...
-
Dva+roadhog project, once the webpack.config.js,roadhog configuration is written, will it still work?
dva version: 2.1.0
roadhog version: 1.3.1
roadhog officially does not recommend using webpack.config.js for configuration, but uses your own .uplohogrc or .uplohogrc.js .
but now I need to use webpack.config.js in my project to make the con...
-
How to configure the jquery particle system in ant design pro
recently, to do the background image at the back of the login page, you need to use the plug-in of jquery particle system. There are jq packages and js native in it. If you use ant design pro, how to configure without webpack! Ask all the gods to do me a...
-
How to handle asynchronous queuing in dva
* deleteDetails({payload}, {call, put}) {
const result = yield call(deleteDetails, {payload});
if (result.code !== 200) {
throw result.msg;
} else {
Toast.success(result.msg, 1);
yield put(routerRedux.goBack(...
-
How to call the server interface to set the proxy by ant design pro
I disabled mock .webpackrcproxy
using the ant design pro framework. I set up a proxy but it doesn t work well, and I can t request the interface in the background all the time
...
-
Ant design pro page componentDidMount requests data. The request is successful at the beginning, and will be automatically reported to 401 after a while.
after a successful login, dispatch sends a request in componentDidMount. At first, the request is successful, but after a while, the request automatically fails, reporting an error of 401, but it is good to log in again.
...
-
How to assign an initial value to input when the click-and-edit function in ant design pro uses getFieldDecorator
ant design pro framework does a click-edit function to generate a pop-up box, how to assign an initial value to an input when using form.getFieldDecorator
writing initialvalue doesn t work. How to fix this?
...
-
How to dispatch an action, in dva with .then (() = > {})
the dva project needs to trigger an action, of Synchronize to change the query parameters on the state tree, and then get the get interface parameters in .then? ...