Skip to content

Instantly share code, notes, and snippets.

周汉成 ZhouHansen

  • Anhui, China 中国安徽
Block or report user

Report or block ZhouHansen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ZhouHansen / .js
Last active Aug 15, 2019
View .js
// 现在要实现一个级联选择省市区的功能,需要提供下面的数据。
value: '浙江',
label: '浙江',
searchId: 300000, // json中应包含搜索条件,根据后端的具体实现,返回
children: [
value: '杭州',
ZhouHansen / .md
Last active Apr 18, 2019
Using swagger with vue, django and ngnix
View .md


  1. 从后端代码生成schema
  2. 在后端通过schema生成api文档( 1,2其实是一步)
  3. 在前端请求schema,生成http的请求代码,无须再手写

Vue client example:

ZhouHansen / .txt
Last active Feb 19, 2019
Solutions for unexpected problems from using electron
View .txt
If you are in china:
❌ `npm install electron`
❌ `npm run build`
✅ `ELECTRON_MIRROR= npm install electron`
✅ `ELECTRON_MIRROR= npm run build`
For windows command line:(no space between two command)
✅ `set ELECTRON_MIRROR= run build`
You can’t perform that action at this time.