Skip to content

Feat/zsshuaizhu/time moment #18

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
build/*.js
config/*.js
src
server
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,18 @@
* 用户权限分类


## License
MIT
# 更改数据库,兼容mysql
由于我在打开后端时,mongodb在mac上不太好使用的情况下,
想使用mysql兼容数据库
使用 sequelize 重构 server/api/index.js

# 完成mysql的兼容

# home页面
时间格式化

根本解决方法是从后端解决 createAt 字段的格式化。
不再使用 seqeulize 自带的自动生成。

初始化Sequelize的时候传入dialectOptions参数
完成时间格式化
Loading