@yoooloo42/joker 1.0.193 → 1.0.195
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 +2 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
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,11 +22185,13 @@ function navigate(_ref4) {
|
|
|
22186
22185
|
// 路由跳转类型
|
|
22187
22186
|
path // 路由地址
|
|
22188
22187
|
} = _ref4;
|
|
22188
|
+
const router = useRouter();
|
|
22189
22189
|
if (code === '0') {
|
|
22190
22190
|
window.location.href = path;
|
|
22191
22191
|
} else if (code === '1') {
|
|
22192
22192
|
router.push(path);
|
|
22193
22193
|
} else {
|
|
22194
|
+
// 默认 code === '1'
|
|
22194
22195
|
router.push(path);
|
|
22195
22196
|
}
|
|
22196
22197
|
}
|