[improvement] update eslint config (#2288)

This commit is contained in:
neverland
2018-12-14 14:24:23 +08:00
committed by GitHub
parent d2751ffdfa
commit 16e4889a92
141 changed files with 6387 additions and 7536 deletions

View File

@@ -3,9 +3,9 @@
*/
import { setLang } from './lang';
import { iframeReady, isMobile } from './';
import { iframeReady, isMobile } from '.';
window.syncPath = function(dir) {
window.syncPath = function () {
const router = window.vueRouter;
const isInIframe = window !== window.top;
const currentDir = router.history.current.path;
@@ -28,7 +28,7 @@ window.syncPath = function(dir) {
}
};
window.changePath = function(lang, path = '') {
window.changePath = function (lang, path = '') {
setLang(lang);
window.vueRouter.replace(path);
};