pmg1989 / dva-admin Goto Github PK
View Code? Open in Web Editor NEWdva admin antd dashboard
Home Page: https://pmg1989.github.io
License: MIT License
dva admin antd dashboard
Home Page: https://pmg1989.github.io
License: MIT License
什么时候可以把路由基于react-router4 更改一版吗?
V4的怎么写 用cloneElement报错 报getAttribute('style')为null
可以把面包屑改成Tab页签么
`UrbanDance:dva-admin yueguang$ npm run build:dll
[email protected] build:dll /Users/student/Desktop/GitHub/dva-admin
roadhog buildDll
/Users/student/Desktop/GitHub/dva-admin/node_modules/_fs-extra@3.0.1@fs-extra/lib/mkdirs/mkdirs-sync.js:49
throw err0
^
Error: EACCES: permission denied, mkdir '/Users/student/Desktop/GitHub/dva-admin/node_modules/roadhog-dlls'
at Object.fs.mkdirSync (fs.js:885:18)
at Object.mkdirsSync (/Users/student/Desktop/GitHub/dva-admin/node_modules/_fs-extra@3.0.1@fs-extra/lib/mkdirs/mkdirs-sync.js:31:9)
at Object.emptyDirSync (/Users/student/Desktop/GitHub/dva-admin/node_modules/_fs-extra@3.0.1@fs-extra/lib/empty/index.js:34:18)
at /Users/student/Desktop/GitHub/dva-admin/node_modules/_roadhog@1.4.1@roadhog/lib/buildDll.js:106:25
at /Users/student/Desktop/GitHub/dva-admin/node_modules/_recursive-readdir@2.2.2@recursive-readdir/index.js:44:14
at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:dll: roadhog buildDll
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:dll script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/student/.npm/_logs/2018-06-14T15_07_27_212Z-debug.log
UrbanDance:dva-admin yueguang$
`
Bread.js 中的 hyphenToHump() 这个函数是从哪来的呀?
function getAllPathPowers (menuArray, curPowers) {
return menuArray.reduce((dir, item) => {
dir[/${item.key}
] = curPowers[item.id]
if (item.children) {
item.children.reduce((cdir, cur) => {
dir[/${cdir}/${cur.key}
] = curPowers[cur.id]
return cdir
}, item.key)
getAllPathPowers(item.children, curPowers)
}
return dir
}, {})
}
这个封装的方法应该得不到所有的path
改了baseURL之后,请求的还是本地的localhost?是mock的原因吗?新手没用过mock。。
方便加我qq聊聊技术,840690384,求加
作者我关注你的文章好久了 ,我想问下,Header部分添加下拉菜单并且路由,怎么做啊,求教,新手一枚
error
E:\github\Roles>npm start
> @ start E:\github\Roles
> dora --plugins "proxy,webpack,webpack-hmr"
proxy: load rule from proxy.config.js
(node:9032) DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
proxy: listened on 8989
temp certs cleared
1/3 build modulesWARNING: can't open config file: C:/OpenSSL/openssl.cnf
Generating RSA private key, 2048 bit long modulus
.............+++
...................................................+++
e is 65537 (0x10001)
WARNING: can't open config file: C:/OpenSSL/openssl.cnf
Unable to load config info from C:/OpenSSL/openssl.cnf
=============
rootCA generated at :
C:\Users\Admin\.anyproxy_certs
=============
rootCA generated
please trust the rootCA.crt in C:\Users\Admin\.anyproxy_certs\
or you may get it via anyproxy webinterface
1691/1691 build modules
webpack: bundle build is now finished.
How does it compare with https://github.com/marmelab/react-admin (which is from https://github.com/marmelab/ng-admin) ?
With react-admin, if we setup few configurations, the whole admin is up and ready. Is dva-admin works like that? (or, mere components that still needs assembling?) If not, is there any similar projects available that is comparable to https://github.com/marmelab/react-admin in this Ant ecosystem? TIA
在Safari浏览器上,编辑器选择文本颜色和背景颜色选择不了,下拉时颜色选择没有出现,这是浏览器兼容问题吗?
登陆成功之后界面有时候回现出现404然后跳到首页?
大神,这个编辑器的上传图片还有问题😔
为何我启动项目会报错,是不是还要配置别的环境
作者你好,我把代码clone下来之后在vs code编辑器中打开后,发现所有.js文件第一行 import 或者 const 语句上都会返回一个 eslint 错误。[eslint] Parsing error: The keyword 'import' is reserved 。最终导致所有的 eslint 检查都没有效果。
我尝试更新了 dependencies 所有与 eslint 和 babel 相关的依赖,但是并没有什么卵用。 请问可以协助我解决一下吗? 谢谢🙏
一个页面,怎样做定时刷新?感觉使用setTimeout或setInterval都有问题,,你有什么好的方案么?
这个问题碰见好几次了,不知道各位有没有遇到过!
望提示一下 谢谢
请教下,
<Route path="/" component={require("./routes/App")} >
<IndexRoute component={require("./routes/Home")}/>
<Route path="home" component={require("./routes/Home")}/>
<Route path="test1" component={require("./routes/test")}/>
</Route>
</Route>
</Router>
按照您的router.js ,但浏览器地址后面还是会出现随机字符串
通过yarn下载好包后,启动报错
Failed to start the server, since you have enabled dllPlugin, but have not run roadhog buildDll
before roadhog server
.
找半天,才发现 reducers 都被放到了components 中,
route 里面放了 UI components!
反正我看得一头雾水,不知道能否提供一个该项目的源码学习的项目路径图?
PS: redux 刚刚使用,不对之处还望指正!
路由嵌套,不用children也能实现admin后台点击左边,右边content显示吗?
能具体说下吗,感激不尽
搞个qq群,方便交流可好
请教下,app的state的curPowers,是怎么传到所有页面中去的呢?我看其他页面的model state里面没有存curPowers,但是却能取到app的state的curPowers, 是在哪弄的呢?
看您的源码 routes 下有二级目录,但我在router.js 里面不管是按需加载还是最原始的 import,都只对routes下面的文件有用, routes//.js 就编译不到了
npm install 之后..一堆警告..然后安装 babel beta.46...说要beta.32..安装beta.32....又警告需要46....
是因为layout的问题导致 notification 好像用不了,只能用message 了吗?
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm WARN [email protected] requires a peer of react@^16.0.0 but none was insta
lled.
npm WARN [email protected] requires a peer of jquery@>=1.8.0 but none was ins
talled.
npm WARN [email protected] requires a peer of eslint-plugin-jsx-a11y@^
5.1.1 but none was installed.
最新版tab页签切换时页面会重新加载,初始化。
是否应该tab切换时页面不变化,否则用户的操作会丢失
如果我想把本地模拟的登陆替换为与服务器交互,应该怎么操作呢,谢谢
或者如何把项目包 给别人 别人不用起服务 直接可以打开呢
我咋bread.js中直接引用menu.js 会在const getPathSet = function () 函数中报 forEach没定义 但是通过index来间接引用 为什么就不报错呢?
是在roadhogrc.js修改还是哪里
看介绍说实现了基本的权限控制,能详细介绍下么?另外,如果要对菜单做权限控制,应该怎么做?
utils/config.js 里面设置了:
logoSrc: ''
entry.dev.ejs 里面删除了以下:
entry.ejs 里面删除了以下:
但是browser标题还是显示newband图标啊?
怎么破?
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.