Commit 59f44129 authored by 郭志伟's avatar 郭志伟

fix(index.ts): 问题修复

parent 9c5bd01d
...@@ -11,7 +11,7 @@ export const chunk = function(array, size) { ...@@ -11,7 +11,7 @@ export const chunk = function(array, size) {
}; };
export const getParameterByName = function(name, url) { export const getParameterByName = function(name, url) {
if (!url) { if (!url && !EASY_ENV_IS_NODE) {
url = window.location.href; url = window.location.href;
} }
name = name.replace(/[\[\]]/g, '\\$&'); name = name.replace(/[\[\]]/g, '\\$&');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment