@yoooloo42/joker 1.0.195 → 1.0.197

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
@@ -22179,21 +22179,26 @@ function ly0sessionLoseWithUsertbl(usertbl) {
22179
22179
  }
22180
22180
 
22181
22181
  // 导航(路由跳转)
22182
- function navigate(_ref4) {
22183
- let {
22184
- code = '1',
22185
- // 路由跳转类型
22186
- path // 路由地址
22187
- } = _ref4;
22182
+ function navigate() {
22188
22183
  const router = useRouter();
22189
- if (code === '0') {
22190
- window.location.href = path;
22191
- } else if (code === '1') {
22192
- router.push(path);
22193
- } else {
22194
- // 默认 code === '1'
22195
- router.push(path);
22196
- }
22184
+ const navigate = _ref4 => {
22185
+ let {
22186
+ code = '1',
22187
+ // 路由跳转类型
22188
+ path // 路由地址
22189
+ } = _ref4;
22190
+ if (code === '0') {
22191
+ window.location.href = path;
22192
+ } else if (code === '1') {
22193
+ router.push(path);
22194
+ } else {
22195
+ // 默认 code === '1'
22196
+ router.push(path);
22197
+ }
22198
+ };
22199
+ return {
22200
+ navigate
22201
+ };
22197
22202
  }
22198
22203
  var ly0request = {
22199
22204
  domain: domainPara,