@yoooloo42/joker 1.0.194 → 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.esm.js CHANGED
@@ -22019,7 +22019,6 @@ function useRouter() {
22019
22019
  return inject(routerKey);
22020
22020
  }
22021
22021
 
22022
- const router = useRouter();
22023
22022
  const domainPara = 'http://127.0.0.1:443';
22024
22023
  const upload$1 = '/ly0/upload-req/file';
22025
22024
  const upload_image = '/ly0/upload-req/image';
@@ -22186,17 +22185,24 @@ function navigate(_ref4) {
22186
22185
  // 路由跳转类型
22187
22186
  path // 路由地址
22188
22187
  } = _ref4;
22189
- console.log('测试 000', code);
22190
- console.log('测试 111', path);
22191
- console.log('测试 222', router);
22192
- if (code === '0') {
22193
- window.location.href = path;
22194
- } else if (code === '1') {
22195
- router.push(path);
22196
- } else {
22197
- // 默认 code === '1'
22198
- router.push(path);
22199
- }
22188
+ const router = useRouter();
22189
+ const navigate = _ref5 => {
22190
+ let {
22191
+ code = '1',
22192
+ path
22193
+ } = _ref5;
22194
+ if (code === '0') {
22195
+ window.location.href = path;
22196
+ } else if (code === '1') {
22197
+ router.push(path);
22198
+ } else {
22199
+ // 默认 code === '1'
22200
+ router.push(path);
22201
+ }
22202
+ };
22203
+ return {
22204
+ navigate
22205
+ };
22200
22206
  }
22201
22207
  var ly0request = {
22202
22208
  domain: domainPara,