@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.cjs.js CHANGED
@@ -22023,7 +22023,6 @@ function useRouter() {
22023
22023
  return vue.inject(routerKey);
22024
22024
  }
22025
22025
 
22026
- const router = useRouter();
22027
22026
  const domainPara = 'http://127.0.0.1:443';
22028
22027
  const upload$1 = '/ly0/upload-req/file';
22029
22028
  const upload_image = '/ly0/upload-req/image';
@@ -22190,17 +22189,24 @@ function navigate(_ref4) {
22190
22189
  // 路由跳转类型
22191
22190
  path // 路由地址
22192
22191
  } = _ref4;
22193
- console.log('测试 000', code);
22194
- console.log('测试 111', path);
22195
- console.log('测试 222', router);
22196
- if (code === '0') {
22197
- window.location.href = path;
22198
- } else if (code === '1') {
22199
- router.push(path);
22200
- } else {
22201
- // 默认 code === '1'
22202
- router.push(path);
22203
- }
22192
+ const router = useRouter();
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
+ };
22204
22210
  }
22205
22211
  var ly0request$1 = {
22206
22212
  domain: domainPara,