@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 +17 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +17 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22186,14 +22186,23 @@ function navigate(_ref4) {
|
|
|
22186
22186
|
path // 路由地址
|
|
22187
22187
|
} = _ref4;
|
|
22188
22188
|
const router = useRouter();
|
|
22189
|
-
|
|
22190
|
-
|
|
22191
|
-
|
|
22192
|
-
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
|
|
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
|
+
};
|
|
22197
22206
|
}
|
|
22198
22207
|
var ly0request = {
|
|
22199
22208
|
domain: domainPara,
|