From 31056103b5ca4861cff1a147663c10ae1a61549a Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Wed, 4 Mar 2020 14:16:07 +0800 Subject: [PATCH] fix(cli): const => var --- packages/vue-cli-plugin-uni/lib/format-log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-cli-plugin-uni/lib/format-log.js b/packages/vue-cli-plugin-uni/lib/format-log.js index 236683be..b34bf74c 100644 --- a/packages/vue-cli-plugin-uni/lib/format-log.js +++ b/packages/vue-cli-plugin-uni/lib/format-log.js @@ -12,7 +12,7 @@ export default function formatLog () { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key] } - const type = args.shift() + var type = args.shift() if (isDebugMode()) { args.push(args.pop().replace('at ', 'uni-app:///')) return console[type]['apply'](console, args) -- GitLab