zuiidea / antd-admin Goto Github PK
View Code? Open in Web Editor NEWAn excellent front-end solution for enterprise applications built upon Ant Design and UmiJS
Home Page: https://antd-admin.zuiidea.com
License: MIT License
An excellent front-end solution for enterprise applications built upon Ant Design and UmiJS
Home Page: https://antd-admin.zuiidea.com
License: MIT License
是这样的。我是后台程序猿。学习react 和dva脚手架遇到一个问题就是登陆问题,所以想参照一下。实在羞涩难当,可否把登陆加上呢?
我发现用npm run build构建出来的js里面包含mock.js的测试数据,感觉这样会导致大不少,但是不知道生产版版在哪里引用的mock.js呢,为什么会被webpack导入?
为什么登陆后,刷新页面也不用登陆?实现的思路是????
参考: AdminLTE2
搜索框回车页面就显示登录界面无限旋转等待~
代码中貌似没有做请求错误处理, 这是很重要的一块吧? 看了下请求的错误处理基本没有...
^_^ 期待相关代码演示
http://o79go0ik9.bkt.clouddn.com/aa.png
http://o79go0ik9.bkt.clouddn.com/bb.png
如图 一直显示没有数据
您好 我这边 是把示例里面的users.js这个路由 外面包了一层 代码啥的 都木有改 然后就一直显示没有数据 我想问下应该怎么改呢?
现在是一个页面一个model,如果页面比较复杂的话,需要细分model,怎么把modal挂载到对应的组件上,除了使用路由方式,还有其他方式么?
{ path: 'users', name: 'users', getComponent(nextState, cb) { require.ensure([], require => { app.model(require('./models/users')) cb(null, require('./routes/users')) },u) }
这段代码加上自定义名称会报错
npm run dev
我这边遇到的问题是 ;tree 控件里面的 treenode 节点 怎么添加自定义属性?
需求是:点击 treenode 右侧出现一个 form 里面显示节点的信息,可以进行 修改和删除
看文档没有提供此类方法 请问一下,有什么好方法吗?
你好,antd-admin和davjs的mock逻辑不一样,无法用npm run start启动proxy。请问这个有什么解决方法吗?
你好 我如何配置正式环境的 url 参数呢? 是注释掉 src/utils/index.js 里面的 require('./mock.js'),然后写死放到请求接口里面吗?类似这样 return request('192.168.1.123:8080/api/login', {
method: 'post',
data: params
}) 还是有地方可以配置啊,怎么配置呢?
谢谢!
现在项目越来越大,所有文件都积压在index.js内快10M了,所有我想做成按需加载。就是在路由这块调用页面时候。才把对应的route,service,components相关的所有文件加载。这相关的文件打成一个js文件。应该怎么做?没有思路!请教。
你好, 请问routes/app.js文件中children值是怎么设置的?
侧边栏收缩进去,vertical看不了,试了一下直接mode="vertical"菜单也不出来,实在不知道怎么解,请教一下
在这一行触发:
document.onkeyup = e => e.keyCode === 13 && handleOk();
感谢共享此方案
问题如下:
1.侧边栏导航过多的时候,不能上下滚动
2.侧边栏导航不能根据地址栏路径自动定位到当前需要高亮的导航目录
你好,我这边在运行 npm run build 的时候 构建成功了 但是 assets 里面的东西没有构建进去 导致logo图片显示不了 ,我这个 logo 是在 src/utils/config.js 里面配置的路径 。。。
谢谢!
在绑定model时需要一个app对象,这个app对象如何传递,或者在拆分的子路由中如何绑定model
export default Form.create()(login)
这行代码做什么用的呀
The width(0) and height(0) of chart should be greater than 0,
please check the style of container, or the props width(100%) and height(100%),
or add a minWidth(undefined) or minHeight(360) or use aspect(undefined) to control the
height and width.
LogUtils.js? (第 23 行)
uncaught
at _callee
at _callee4
at takeEvery(app/login, sagaWithCatch)
at sagaWithCatch
start/onError<@webpack:///.//dva/lib/createDva.js?:201:15/dva/lib/plugin.js?:97:11
apply/<@webpack:///./
onErrorWrapper@webpack:///.//dva/lib/createDva.js?:206:11/dva/lib/createDva.js?:494:17
sagaWithCatch$@webpack:///./
tryCatch@webpack:///.//regenerator-runtime/runtime.js?:64:37/regenerator-runtime/runtime.js?:355:22
invoke@webpack:///./
defineIteratorMethods/</prototype[method]@webpack:///.//regenerator-runtime/runtime.js?:116:16/redux-saga/lib/internal/proc.js?:293:18
next@webpack:///./
currCb@webpack:///.//redux-saga/lib/internal/proc.js?:392:7/redux-saga/lib/internal/proc.js?:359:18
end@webpack:///./
abort@webpack:///.//redux-saga/lib/internal/proc.js?:95:5/redux-saga/lib/internal/proc.js?:108:9
addTask/task.cont@webpack:///./
next@webpack:///.//redux-saga/lib/internal/proc.js?:332:7/redux-saga/lib/internal/proc.js?:392:7
currCb@webpack:///./
notify/</run@webpack:///.//core-js/library/modules/es6.promise.js?:87:22/core-js/library/modules/es6.promise.js?:100:28
notify/<@webpack:///./
module.exports/flush@webpack:///./~/core-js/library/modules/_microtask.js?:18:9
代码是直接clone下来的,没有修改过,npm start 之后,控制台报这个错了,这个代理是做什么用的呢? @zuiidea
我看了react一段时间了,这几天一边看你的更新进度,一边对照你的代码学习,对其有些基本的了解,但是跟laravel框架结合使用一直想不到特别好的办法,我所想到的是使用dav框架或者koa开发react antd的后端,用ajax 和laravel数据交互,但是这样不如直接使用laravel的blade模版去渲染来的方便,更好控制(可能是因为我对react还不够熟练)单单权限这块功能用react觉得都很麻烦。你有什么方法可以和laravel框架结合使用吗?希望能告诉我,谢谢!
如何在项目中集成express,用来处理客户端请求?需要怎么配置
手边正有一个项目要用到antd做后台数据管理这一块的内容,看到您的这个项目很想学习借鉴,不知道能不能拿来商用,相关的license还是添加一些吧。
你好,我这边按照官网提供的demo,替换官方的字体图标一直不成功,是不是因为一些依赖没有加载,还是别的原因啊,引入步骤是怎么样的呢?望解答,谢谢了
No 'Access-Control-Allow-Origin' header is present on the requested resource.
请问一下为啥不用fetch换用robe-ajax,对于后台系统是否建议前后端完全分离,考虑跨域过吗
调试了一下,发现有一个问题,进入的时候仪表盘可以正常被调用,当转到其他页面后,再点击仪表盘则会出错:
Uncaught Error: app.model: namespace should be unique
用户管理也有这个问题。
异步加载的tree感觉是局部页面刷新,而不是整个组件刷新,也就是说是否不适用于dva脚手架的component、route、model三层?
您好。
我现在如果要从我这边的接口拿到数据,并显示出来,该怎么写呢。
感谢🙏🙏
index.js中设置history 为 browserHistory:
import { browserHistory } from 'dva/router' const app = dva({ history: browserHistory, })
点击左侧菜单可以正确跳转到指定页面,URL也是browserHistory风格了,但在每个页面里刷新的时候就会找不到页面,这里还需要在什么地方设置吗?
作者没有使用dva封装的requests, 也不用axios这类常用的库. 使用的robe-ajax似乎只有寥寥几个star
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.