@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.esm.js CHANGED
@@ -22117,6 +22117,22 @@ function ly0sessionLoseWithUsertbl(usertbl) {
22117
22117
  }
22118
22118
  return lose;
22119
22119
  }
22120
+
22121
+ // 导航(路由跳转)
22122
+ function navigate(_ref4) {
22123
+ let {
22124
+ code = '1',
22125
+ // 路由跳转类型
22126
+ path // 路由地址
22127
+ } = _ref4;
22128
+ if (code === '0') {
22129
+ window.location.href = path;
22130
+ } else if (code === '1') {
22131
+ router.push(path);
22132
+ } else {
22133
+ router.push(path);
22134
+ }
22135
+ }
22120
22136
  var ly0request = {
22121
22137
  domain: domainPara,
22122
22138
  upload: upload$1,
@@ -22129,7 +22145,8 @@ var ly0request = {
22129
22145
  ly0sessionLoad,
22130
22146
  ly0sessionClear,
22131
22147
  ly0sessionLose,
22132
- ly0sessionLoseWithUsertbl
22148
+ ly0sessionLoseWithUsertbl,
22149
+ navigate
22133
22150
  };
22134
22151
 
22135
22152
  var request = {