Browse Source

temp:修改成lodash

wumu 5 years ago
parent
commit
10a213b1de
3 changed files with 3 additions and 3 deletions
  1. 1 1
      lib/api.js
  2. 1 1
      lib/loadScript.js
  3. 1 1
      lib/webservice.js

+ 1 - 1
lib/api.js

@@ -2,7 +2,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
 
 function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
 
-import { isEmpty, isNil, isEqual, forOwn } from "lodash-es";
+import { isEmpty, isNil, isEqual, forOwn } from "lodash";
 //import loadjscssfile from './loadScript';
 import APILoader from "./APILoader";
 

+ 1 - 1
lib/loadScript.js

@@ -1,7 +1,7 @@
 /**
  * see: http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml
  */
-import { indexOf } from "lodash-es";
+import { indexOf } from "lodash";
 
 var gFileList = []; //list of files already added
 var loadjscssfile = function loadjscssfile(filename, filetype) {

+ 1 - 1
lib/webservice.js

@@ -1,6 +1,6 @@
 var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
 
-import { isUndefined, isNil, isEqual, forOwn } from "lodash-es";
+import { isUndefined, isNil, isEqual, forOwn } from "lodash";
 
 // M: Mandatory,必选
 // api调用限流说明: https://lbs.amap.com/api/webservice/guide/tools/flowlevel