@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.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,11 +22189,13 @@ function navigate(_ref4) {
|
|
|
22190
22189
|
// 路由跳转类型
|
|
22191
22190
|
path // 路由地址
|
|
22192
22191
|
} = _ref4;
|
|
22192
|
+
const router = useRouter();
|
|
22193
22193
|
if (code === '0') {
|
|
22194
22194
|
window.location.href = path;
|
|
22195
22195
|
} else if (code === '1') {
|
|
22196
22196
|
router.push(path);
|
|
22197
22197
|
} else {
|
|
22198
|
+
// 默认 code === '1'
|
|
22198
22199
|
router.push(path);
|
|
22199
22200
|
}
|
|
22200
22201
|
}
|