- 📫 个人邮箱: [email protected]
- 💬 个人微信: yezihaohao2020
- 📮 长期招人: [email protected]
在学习中成长,在成长中沉淀,在沉淀中做事
:sparkles: react-admin system solution : react 后台管理系统解决方案
Home Page: https://admiring-dijkstra-34cb29.netlify.com/
License: MIT License
在学习中成长,在成长中沉淀,在沉淀中做事
就是多个tab页面的路由切换
你好。我把项目down下来以后,运行npm install 安装相关依赖,但是报错:
npm WARN deprecated [email protected]: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: 1.2.0 should have been a major version bump
npm ERR! Unexpected end of JSON input while parsing near '..."rc-tooltip":"~2.6.4"'
引入less文件导致样式冲突,怎样让less只作用当前组件 ?
如何实现左侧菜单登录后从服务器获取.模拟也行?
项目中遇到的问题和找到的解决方案进行汇总清单~
你好,Uncaught TypeError: Cannot read property 'push' of undefined
这个有计划解决吗
最近也在做这样一个后台系统,后台里面所有的页面都是需要登录状态才可以访问的,并且对于账号有对应权限,还有保持登录状态方面的思路,求分享
fix: router => history
当任意调整窗口大小时会导致内容显示页面重新渲染
routes/index.js render()方法中的...应该在componentWillMount时存入state中比较合适
怎么解决适配的呢?
Warning: Hash history cannot PUSH the same path; a new entry will not be added to the history stack
运行npm start 报
Error: Cannot find module '../config/webpackDevServer.config'
config里也确实没有webpackDevServer.config
'requireAuth' is not defined no-undef
什么时候升级 react-router 到4.x
App.js
// 手机端对滚动很慢的处理 responsive.data.isMobile && ( <style> #root{ height: auto; } </style> )
你加的这个之后(我并不知道有没有对手机端滚动快慢有影响),但是在Content里面内容不多的情况下会比较难看(Footer会跑到屏幕**等),有没有什么建议做到两全?
项目中
page.js中
<Route exact path="/" render={() => } />
index.js中
page页面redirect到index.页面里的首页,是怎么工作的。为什么没掉成功呢
跪求大佬更新一下IE9和IE10的兼容配置
微信(base64):MTUyNjE4MTYxNzU=
在webpack.config.dev.js中添加了代理的相关设置,但是在测试环境中每次fetch的时候 请求地址还是没有成功代理,
devServer: { historyApiFallback: true, host: 'localhost', port: '3006', hot: true, inline: true, stats: { colors: true }, proxy: { '/api/*': { target: 'http://XXXXX', pathRewrite: {'^/api' : '/api'}, changeOrigin: true } } },
App.js中
#root{
height: auto;
}
图表里的 echarts 在Chrome 循环崩溃。
Chrome 版本 Mac 60.0.3112.101(正式版本) (64 位)
table中hover的时候颜色是深色,因为文字是黑色的,导致看不清楚所以想修改这个颜色。
clone博主最新版本的项目到本地后,执行npm i,直接报错,报错信息如下:
npm ERR! Unexpected end of input at 1:72287
npm ERR! ","optimist":"0.2.x","uglify-js":"2.2.x","async":"0.1.x","enhanced-re
npm ERR! ^
ps:本人开发环境为:node:8.2.1,npm:5.3.0
在编辑器改动文件,保存之后大概需要等待10秒,浏览器才会开始刷新,请问如何修改等待时间?多谢!
react-admin zhongbingda$ npm run build
[email protected] build /Users/zhongbingda/work/web/git/react-admin
node scripts/build.js
Creating an optimized production build...
Failed to compile.
Module not found: Error: Can't resolve '@/components/BreadcrumbCustom' in '/Users/zhongbingda/work/web/git/react-admin/src/components/auth'
close
路由拦截页面进入后无法后退
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs
.io/env to update!
npm install,出项上面的提示。辛苦
非常不好意思,由于自己react redux这块不是很熟悉,所以遇到了一个问题
console.log('allDataBase');
console.log(allDataBase.data);
console.log('allDataBase');
let listOptions = [];
allDataBase.map((value,index)=>{
listOptions.push(<Option value={value} key={index}>{value}</Option>)
})
return listOptions;
我看控制台已经请求有数据了,在react插件里面显示props里也有allDataBase这个数据,
那我应该怎么拿出来这个数据呢?我用const {allDataBase} = this.props是返回undifine....
./src/components/index.js
Line 26: Unexpected '!' in 'bundle-loader?lazy!./ui/Wysiwyg'. Do not use import syntax to configure webpack loaders import/no-webpack-loader-syntax
Search for the keywords to learn more about each error.
可以更新下项目目录结构吗
线上是http,上线后报错
Error during service worker registration: DOMException: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).
我是前端新人,现在想在本地运行你的工程,需要什么环境准备,或者需要什么工具吗?
访问http://localhost:3006/#/app/auth/basic 时,页面报错。
package.json内:dependencies下都是生产环境的依赖,devDependencies下都是开发环境的依赖,你这有点凌乱啊,是故意为之还是?
npm 5.6.0
node 9.0.0
npm ERR! Unexpected end of JSON input while parsing near '..."2.x - 4.x"},"directo'
npm ERR! A complete log of this run can be found in:
npm ERR! D:\node\node_global_cache_logs\2018-05-21T07_30_33_055Z-debug.log
能google到的方法都试了
在同一页面绘制了8个Echarts,但最后出来的效果所有图表都是最后一个图表的数据
相关代码如下: 循环中调用
propsObj = {
data: data, date: date, title: title
};
component.push(
<div className="gutter-box" key={index}>
<Card title={title} bordered={false}>
<EchartsArea {...propsObj}/>
</Card>
</div>
);
很多第三方的包,版本都可以升级了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.