@fonixtree/magic-design 2.0.69 → 2.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/utils/coreUtil.js +3 -3
- package/lib/utils/coreUtil.js +3 -3
- package/package.json +1 -1
package/es/utils/coreUtil.js
CHANGED
|
@@ -363,12 +363,12 @@ var clickUrl = function clickUrl(url) {
|
|
|
363
363
|
|
|
364
364
|
if (isUrl(link)) {
|
|
365
365
|
if (!link.includes(window.location.host)) {
|
|
366
|
-
// 跳转外链 需要把
|
|
366
|
+
// 跳转外链 需要把userToken带上
|
|
367
367
|
if (link.includes('?')) {
|
|
368
|
-
var a = link + "&
|
|
368
|
+
var a = link + "&userToken=" + (localStorage.getItem('h5Token') || '');
|
|
369
369
|
window.open(a);
|
|
370
370
|
} else {
|
|
371
|
-
var a = link + "?
|
|
371
|
+
var a = link + "?userToken=" + (localStorage.getItem('h5Token') || '');
|
|
372
372
|
window.open(a);
|
|
373
373
|
}
|
|
374
374
|
}
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -363,12 +363,12 @@ var clickUrl = function clickUrl(url) {
|
|
|
363
363
|
|
|
364
364
|
if (isUrl(link)) {
|
|
365
365
|
if (!link.includes(window.location.host)) {
|
|
366
|
-
// 跳转外链 需要把
|
|
366
|
+
// 跳转外链 需要把userToken带上
|
|
367
367
|
if (link.includes('?')) {
|
|
368
|
-
var a = link + "&
|
|
368
|
+
var a = link + "&userToken=" + (localStorage.getItem('h5Token') || '');
|
|
369
369
|
window.open(a);
|
|
370
370
|
} else {
|
|
371
|
-
var a = link + "?
|
|
371
|
+
var a = link + "?userToken=" + (localStorage.getItem('h5Token') || '');
|
|
372
372
|
window.open(a);
|
|
373
373
|
}
|
|
374
374
|
}
|