From 67700ee591ac42fdcf4965a0f428a9cb04ed2d2a Mon Sep 17 00:00:00 2001 From: troyeguo <13820674+troyeguo@users.noreply.github.com> Date: Thu, 10 Sep 2020 17:06:10 +0800 Subject: [PATCH] fix bug Former-commit-id: 7845ac1cfa57cb3d8dd7d81f175810f97d629499 --- src/containers/popupMenu/component.tsx | 2 +- src/index.tsx | 2 +- src/utils/backupUtil.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/containers/popupMenu/component.tsx b/src/containers/popupMenu/component.tsx index ff08fc2b..76497b95 100644 --- a/src/containers/popupMenu/component.tsx +++ b/src/containers/popupMenu/component.tsx @@ -8,7 +8,7 @@ import { PopupMenuProps, PopupMenuStates } from "./interface"; declare var window: any; -let _ = window.lodash; +let _ = window._; class PopupMenu extends React.Component { highlighter: any; diff --git a/src/index.tsx b/src/index.tsx index 2f534515..8b3a2b9d 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -15,4 +15,4 @@ ReactDOM.render( // If you want your app to work offline and load faster, you can change // unregister() to register() below. Note this comes with some pitfalls. // Learn more about service workers: https://bit.ly/CRA-PWA -serviceWorker.register(); +serviceWorker.unregister(); diff --git a/src/utils/backupUtil.tsx b/src/utils/backupUtil.tsx index 693d087d..cb578709 100644 --- a/src/utils/backupUtil.tsx +++ b/src/utils/backupUtil.tsx @@ -8,7 +8,7 @@ import DropboxUtil from "./syncUtils/dropbox"; import OndriveUtil from "./syncUtils/onedrive"; // import _ from "lodash"; -let _ = (window as any).lodash; +let _ = (window as any)._; let JSZip = (window as any).JSZip; class BackupUtil { static backup(