@yoooloo42/joker 1.0.184 → 1.0.186
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/dist/index.cjs.js +18 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +18 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22121,6 +22121,22 @@ function ly0sessionLoseWithUsertbl(usertbl) {
|
|
|
22121
22121
|
}
|
|
22122
22122
|
return lose;
|
|
22123
22123
|
}
|
|
22124
|
+
|
|
22125
|
+
// 导航(路由跳转)
|
|
22126
|
+
function navigate(_ref4) {
|
|
22127
|
+
let {
|
|
22128
|
+
code = '1',
|
|
22129
|
+
// 路由跳转类型
|
|
22130
|
+
path // 路由地址
|
|
22131
|
+
} = _ref4;
|
|
22132
|
+
if (code === '0') {
|
|
22133
|
+
window.location.href = path;
|
|
22134
|
+
} else if (code === '1') {
|
|
22135
|
+
router.push(path);
|
|
22136
|
+
} else {
|
|
22137
|
+
router.push(path);
|
|
22138
|
+
}
|
|
22139
|
+
}
|
|
22124
22140
|
var ly0request$1 = {
|
|
22125
22141
|
domain: domainPara,
|
|
22126
22142
|
upload: upload$1,
|
|
@@ -22133,7 +22149,8 @@ var ly0request$1 = {
|
|
|
22133
22149
|
ly0sessionLoad,
|
|
22134
22150
|
ly0sessionClear,
|
|
22135
22151
|
ly0sessionLose,
|
|
22136
|
-
ly0sessionLoseWithUsertbl
|
|
22152
|
+
ly0sessionLoseWithUsertbl,
|
|
22153
|
+
navigate
|
|
22137
22154
|
};
|
|
22138
22155
|
|
|
22139
22156
|
var request = {
|