提交 088fef04 authored 作者: vipcxj's avatar vipcxj

impove: 修复eslint报的错

上级 9cdc4a97
......@@ -12,7 +12,7 @@ const app = dva({
models: [...models, routerModel],
extraEnhancers: [autoRehydrate()],
onError(e) {
console.log('onError', e);
console.error('onError', e); // eslint-disable-line no-console
},
});
......
import { AsyncStorage } from 'react-native';
import { NavigationActions } from 'react-navigation';
export default {
......
import { NativeModules } from 'react-native';
// noinspection JSUnresolvedVariable
export default NativeModules.IDCard;
\ No newline at end of file
export default NativeModules.IDCard;
......@@ -11,4 +11,4 @@ class HomeScreen extends Component {
}
}
export default HomeScreen;
\ No newline at end of file
export default HomeScreen;
......@@ -2,4 +2,4 @@ export { NavigationActions } from 'react-navigation';
export const delay = time => new Promise(resolve => setTimeout(resolve, time));
export const createAction = type => payload => ({ type, payload });
\ No newline at end of file
export const createAction = type => payload => ({ type, payload });
......@@ -11,9 +11,9 @@ export default {
},
async setItem(key, value) {
const item = JSON.stringify(value);
return await AsyncStorage.setItem(key, item);
return AsyncStorage.setItem(key, item);
},
async delItem(key) {
return AsyncStorage.removeItem(key);
},
}
\ No newline at end of file
};
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论