@yoooloo42/joker 1.0.195 → 1.0.197
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 +19 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +19 -14
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22183,21 +22183,26 @@ function ly0sessionLoseWithUsertbl(usertbl) {
|
|
|
22183
22183
|
}
|
|
22184
22184
|
|
|
22185
22185
|
// 导航(路由跳转)
|
|
22186
|
-
function navigate(
|
|
22187
|
-
let {
|
|
22188
|
-
code = '1',
|
|
22189
|
-
// 路由跳转类型
|
|
22190
|
-
path // 路由地址
|
|
22191
|
-
} = _ref4;
|
|
22186
|
+
function navigate() {
|
|
22192
22187
|
const router = useRouter();
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
|
|
22197
|
-
|
|
22198
|
-
|
|
22199
|
-
|
|
22200
|
-
|
|
22188
|
+
const navigate = _ref4 => {
|
|
22189
|
+
let {
|
|
22190
|
+
code = '1',
|
|
22191
|
+
// 路由跳转类型
|
|
22192
|
+
path // 路由地址
|
|
22193
|
+
} = _ref4;
|
|
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
|
+
};
|
|
22201
22206
|
}
|
|
22202
22207
|
var ly0request$1 = {
|
|
22203
22208
|
domain: domainPara,
|