@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.cjs.js
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vueRouter = require('vue-router');
|
|
6
|
-
var elementPlus = require('element-plus');
|
|
7
5
|
var vue = require('vue');
|
|
6
|
+
var elementPlus = require('element-plus');
|
|
8
7
|
|
|
9
8
|
function _mergeNamespaces(n, m) {
|
|
10
9
|
m.forEach(function (e) {
|
|
@@ -21962,7 +21961,69 @@ const {
|
|
|
21962
21961
|
mergeConfig
|
|
21963
21962
|
} = axios;
|
|
21964
21963
|
|
|
21965
|
-
|
|
21964
|
+
/*!
|
|
21965
|
+
* vue-router v4.6.4
|
|
21966
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
21967
|
+
* @license MIT
|
|
21968
|
+
*/
|
|
21969
|
+
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
21970
|
+
|
|
21971
|
+
//#endregion
|
|
21972
|
+
//#region src/injectionSymbols.ts
|
|
21973
|
+
/**
|
|
21974
|
+
* RouteRecord being rendered by the closest ancestor Router View. Used for
|
|
21975
|
+
* `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
|
|
21976
|
+
* Location Matched
|
|
21977
|
+
*
|
|
21978
|
+
* @internal
|
|
21979
|
+
*/
|
|
21980
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
21981
|
+
/**
|
|
21982
|
+
* Allows overriding the router view depth to control which component in
|
|
21983
|
+
* `matched` is rendered. rvd stands for Router View Depth
|
|
21984
|
+
*
|
|
21985
|
+
* @internal
|
|
21986
|
+
*/
|
|
21987
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
21988
|
+
/**
|
|
21989
|
+
* Allows overriding the router instance returned by `useRouter` in tests. r
|
|
21990
|
+
* stands for router
|
|
21991
|
+
*
|
|
21992
|
+
* @internal
|
|
21993
|
+
*/
|
|
21994
|
+
const routerKey = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
21995
|
+
/**
|
|
21996
|
+
* Allows overriding the current route returned by `useRoute` in tests. rl
|
|
21997
|
+
* stands for route location
|
|
21998
|
+
*
|
|
21999
|
+
* @internal
|
|
22000
|
+
*/
|
|
22001
|
+
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
22002
|
+
/**
|
|
22003
|
+
* Allows overriding the current route used by router-view. Internally this is
|
|
22004
|
+
* used when the `route` prop is passed.
|
|
22005
|
+
*
|
|
22006
|
+
* @internal
|
|
22007
|
+
*/
|
|
22008
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
22009
|
+
|
|
22010
|
+
/*!
|
|
22011
|
+
* vue-router v4.6.4
|
|
22012
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
22013
|
+
* @license MIT
|
|
22014
|
+
*/
|
|
22015
|
+
|
|
22016
|
+
//#endregion
|
|
22017
|
+
//#region src/useApi.ts
|
|
22018
|
+
/**
|
|
22019
|
+
* Returns the router instance. Equivalent to using `$router` inside
|
|
22020
|
+
* templates.
|
|
22021
|
+
*/
|
|
22022
|
+
function useRouter() {
|
|
22023
|
+
return vue.inject(routerKey);
|
|
22024
|
+
}
|
|
22025
|
+
|
|
22026
|
+
const router = useRouter();
|
|
21966
22027
|
const domainPara = 'http://127.0.0.1:443';
|
|
21967
22028
|
const upload$1 = '/ly0/upload-req/file';
|
|
21968
22029
|
const upload_image = '/ly0/upload-req/image';
|
|
@@ -22129,11 +22190,15 @@ function navigate(_ref4) {
|
|
|
22129
22190
|
// 路由跳转类型
|
|
22130
22191
|
path // 路由地址
|
|
22131
22192
|
} = _ref4;
|
|
22193
|
+
console.log('测试 000', code);
|
|
22194
|
+
console.log('测试 111', path);
|
|
22195
|
+
console.log('测试 222', router);
|
|
22132
22196
|
if (code === '0') {
|
|
22133
22197
|
window.location.href = path;
|
|
22134
22198
|
} else if (code === '1') {
|
|
22135
22199
|
router.push(path);
|
|
22136
22200
|
} else {
|
|
22201
|
+
// 默认 code === '1'
|
|
22137
22202
|
router.push(path);
|
|
22138
22203
|
}
|
|
22139
22204
|
}
|