feat: update code style and todo list

* 更新代码样式和待办清单
This commit is contained in:
yanglbme 2020-06-25 20:59:10 +08:00
parent cecd7dde55
commit 95b5ce7bb4
7 changed files with 74 additions and 83 deletions

View File

@ -16,8 +16,7 @@ module.exports = {
parserOptions: {
parser: 'babel-eslint'
},
overrides: [
{
overrides: [{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
@ -25,6 +24,5 @@ module.exports = {
env: {
jest: true
}
}
]
}]
}

View File

@ -43,8 +43,8 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章
- [x] 支持自定义 CSS 样式并实时渲染
- [x] 支持一键恢复至默认内容及样式
- [x] 支持打开或关闭引用链接的选项
- [ ] 新建右键点击菜单栏
- [ ] 插入表格功能优化
- [ ] 支持在编辑框右键弹出功能选项卡
- [ ] 支持更加人性化的插入表格功能
![select-and-change-color-theme](https://imgkr.cn-bj.ufileos.com/32c05c23-6309-491f-bd0d-f22a62c944b4.gif)

View File

@ -21,9 +21,6 @@ export default {
setTimeout(() => {
this.loading = false
}, 200)
window.console &&
window.console.log &&
(console.log("Think big, train fast, learn deep. See https://github.com/yanglbme"))
}
}

View File

@ -20,11 +20,7 @@ service.interceptors.request.use(
);
service.interceptors.response.use(res => {
if (res.data.success) {
return res.data;
}
console.log(res);
return Promise.reject(res.data);
return res.data.success ? res.data : Promise.reject(res.data);
}, error => Promise.reject(error));
export default service;