-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
再请教下,antd换antd-mobile的问题 #8
Comments
一样的啊,配置不用动就把调用antd的地方换成antd-mobile就可以了,还有一个.babelrc里面的antd也换成antd-mobile |
我刚重新试了下,在原demo下,不删antd,只npm install antd-mobile --save安装mobile,然后tui那页的数据就请求不到了,依旧是app.js:8531 POST http://localhost:3012/list 405 (Method Not Allowed) |
请求数据的和这个ui框架没有任何关系,你仔细看下是不是哪里改的时候改错了 |
就说呢,重复了好几次只加npm install antd-mobile --save这一行代码都不行,不知道antd-mobile用命令行安装的时候改了什么,我现在直接把antd-mobile文件夹和rmc-开头的文件夹都拷进你的项目里,然后删掉antd文件夹,这样是不影响请求数据的,但是monile样式不能调用,会报Error: Cannot find module "normalize.css/normalize.css" |
终于找到原因了,安装antd-mobile的时候,会自动删掉node_modules下的很多文件,所以报错了 |
我想把antd换成mobile版的,但是只有一集成进去,网络请求就不对了.
提示以下错误.
app.js:8531 POST http://localhost:3012/list 405 (Method Not Allowed)
The text was updated successfully, but these errors were encountered: