-
Notifications
You must be signed in to change notification settings - Fork 4
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
eslint&用户模块 基础数据类型 #5
Conversation
@@ -20,6 +26,9 @@ declare module 'vuex' { | |||
type ModulesType = { | |||
system: typeof system.state; | |||
user: typeof user.state; | |||
classCon: typeof classCon.state; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个命名是什么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
classCon? 班级?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯,我怕class关键字冲突,要不换一个?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
换成有意义的命名
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
classe —— 法语的班级😂
eslint——允许一个文件存在多个类
用户模块——分离查询组件
用户模块——基础数据类型
分离方式
——————1、html只处理页面逻辑
——————2、vuex处理接口和页面需要的数据格式&基础数据类型