File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,8 @@ export default {
248
248
// 浏览器是否支持该控件
249
249
isSupported,
250
250
// 浏览器是否支持触屏事件
251
- isSupportTouch: document .hasOwnProperty (' ontouchstart' ),
251
+
252
+ isSupportTouch: Object .prototype .hasOwnProperty .call (document , ' ontouchstart' ),
252
253
// 步骤
253
254
step: 1 , // 1选择文件 2剪裁 3上传
254
255
// 上传状态及进度
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ const state = {
13
13
14
14
const mutations = {
15
15
CHANGE_SETTING : ( state , { key, value } ) => {
16
- if ( state . hasOwnProperty ( key ) ) {
16
+ // https://eslint.org/docs/rules/no-prototype-builtins
17
+ if ( Object . prototype . hasOwnProperty . call ( state , key ) ) {
17
18
state [ key ] = value
18
19
}
19
20
}
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ const actions = {
104
104
105
105
// dynamically modify permissions
106
106
changeRoles ( { commit, dispatch } , role ) {
107
+ // eslint-disable-next-line
107
108
return new Promise ( async resolve => {
108
109
const token = role + '-token'
109
110
You can’t perform that action at this time.
0 commit comments