@yoooloo42/joker 1.0.192 → 1.0.194
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 +68 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +67 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { inject, ref, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, unref, reactive, computed, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, isRef, defineComponent, h, onMounted, onBeforeUnmount, watch, nextTick as nextTick$1, resolveDirective, withDirectives } from 'vue';
|
|
2
2
|
import { ElMessageBox, ElMessage } from 'element-plus';
|
|
3
|
-
import { ref, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, unref, reactive, computed, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, isRef, defineComponent, h, onMounted, onBeforeUnmount, watch, nextTick as nextTick$1, resolveDirective, withDirectives } from 'vue';
|
|
4
3
|
|
|
5
4
|
function _mergeNamespaces(n, m) {
|
|
6
5
|
m.forEach(function (e) {
|
|
@@ -21958,6 +21957,68 @@ const {
|
|
|
21958
21957
|
mergeConfig
|
|
21959
21958
|
} = axios;
|
|
21960
21959
|
|
|
21960
|
+
/*!
|
|
21961
|
+
* vue-router v4.6.4
|
|
21962
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
21963
|
+
* @license MIT
|
|
21964
|
+
*/
|
|
21965
|
+
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
21966
|
+
|
|
21967
|
+
//#endregion
|
|
21968
|
+
//#region src/injectionSymbols.ts
|
|
21969
|
+
/**
|
|
21970
|
+
* RouteRecord being rendered by the closest ancestor Router View. Used for
|
|
21971
|
+
* `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
|
|
21972
|
+
* Location Matched
|
|
21973
|
+
*
|
|
21974
|
+
* @internal
|
|
21975
|
+
*/
|
|
21976
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
21977
|
+
/**
|
|
21978
|
+
* Allows overriding the router view depth to control which component in
|
|
21979
|
+
* `matched` is rendered. rvd stands for Router View Depth
|
|
21980
|
+
*
|
|
21981
|
+
* @internal
|
|
21982
|
+
*/
|
|
21983
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
21984
|
+
/**
|
|
21985
|
+
* Allows overriding the router instance returned by `useRouter` in tests. r
|
|
21986
|
+
* stands for router
|
|
21987
|
+
*
|
|
21988
|
+
* @internal
|
|
21989
|
+
*/
|
|
21990
|
+
const routerKey = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
21991
|
+
/**
|
|
21992
|
+
* Allows overriding the current route returned by `useRoute` in tests. rl
|
|
21993
|
+
* stands for route location
|
|
21994
|
+
*
|
|
21995
|
+
* @internal
|
|
21996
|
+
*/
|
|
21997
|
+
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
21998
|
+
/**
|
|
21999
|
+
* Allows overriding the current route used by router-view. Internally this is
|
|
22000
|
+
* used when the `route` prop is passed.
|
|
22001
|
+
*
|
|
22002
|
+
* @internal
|
|
22003
|
+
*/
|
|
22004
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
22005
|
+
|
|
22006
|
+
/*!
|
|
22007
|
+
* vue-router v4.6.4
|
|
22008
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
22009
|
+
* @license MIT
|
|
22010
|
+
*/
|
|
22011
|
+
|
|
22012
|
+
//#endregion
|
|
22013
|
+
//#region src/useApi.ts
|
|
22014
|
+
/**
|
|
22015
|
+
* Returns the router instance. Equivalent to using `$router` inside
|
|
22016
|
+
* templates.
|
|
22017
|
+
*/
|
|
22018
|
+
function useRouter() {
|
|
22019
|
+
return inject(routerKey);
|
|
22020
|
+
}
|
|
22021
|
+
|
|
21961
22022
|
const router = useRouter();
|
|
21962
22023
|
const domainPara = 'http://127.0.0.1:443';
|
|
21963
22024
|
const upload$1 = '/ly0/upload-req/file';
|
|
@@ -22125,11 +22186,15 @@ function navigate(_ref4) {
|
|
|
22125
22186
|
// 路由跳转类型
|
|
22126
22187
|
path // 路由地址
|
|
22127
22188
|
} = _ref4;
|
|
22189
|
+
console.log('测试 000', code);
|
|
22190
|
+
console.log('测试 111', path);
|
|
22191
|
+
console.log('测试 222', router);
|
|
22128
22192
|
if (code === '0') {
|
|
22129
22193
|
window.location.href = path;
|
|
22130
22194
|
} else if (code === '1') {
|
|
22131
22195
|
router.push(path);
|
|
22132
22196
|
} else {
|
|
22197
|
+
// 默认 code === '1'
|
|
22133
22198
|
router.push(path);
|
|
22134
22199
|
}
|
|
22135
22200
|
}
|