@yoooloo42/joker 1.0.195 → 1.0.196

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 CHANGED
@@ -22190,14 +22190,23 @@ function navigate(_ref4) {
22190
22190
  path // 路由地址
22191
22191
  } = _ref4;
22192
22192
  const router = useRouter();
22193
- if (code === '0') {
22194
- window.location.href = path;
22195
- } else if (code === '1') {
22196
- router.push(path);
22197
- } else {
22198
- // 默认 code === '1'
22199
- router.push(path);
22200
- }
22193
+ const navigate = _ref5 => {
22194
+ let {
22195
+ code = '1',
22196
+ path
22197
+ } = _ref5;
22198
+ if (code === '0') {
22199
+ window.location.href = path;
22200
+ } else if (code === '1') {
22201
+ router.push(path);
22202
+ } else {
22203
+ // 默认 code === '1'
22204
+ router.push(path);
22205
+ }
22206
+ };
22207
+ return {
22208
+ navigate
22209
+ };
22201
22210
  }
22202
22211
  var ly0request$1 = {
22203
22212
  domain: domainPara,