@yoooloo42/joker 1.0.197 → 1.0.199
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 +21 -88
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +21 -88
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var router = require('@/router');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
+
var vue = require('vue');
|
|
7
8
|
|
|
8
9
|
function _mergeNamespaces(n, m) {
|
|
9
10
|
m.forEach(function (e) {
|
|
@@ -21961,68 +21962,6 @@ const {
|
|
|
21961
21962
|
mergeConfig
|
|
21962
21963
|
} = axios;
|
|
21963
21964
|
|
|
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
21965
|
const domainPara = 'http://127.0.0.1:443';
|
|
22027
21966
|
const upload$1 = '/ly0/upload-req/file';
|
|
22028
21967
|
const upload_image = '/ly0/upload-req/image';
|
|
@@ -22066,8 +22005,8 @@ async function ly0request(_ref2) {
|
|
|
22066
22005
|
});
|
|
22067
22006
|
|
|
22068
22007
|
// session 异常
|
|
22069
|
-
if (response.data.
|
|
22070
|
-
console.log('session异常', response.data.
|
|
22008
|
+
if (response.data.session && response.data.session.code !== 0) {
|
|
22009
|
+
console.log('session异常', response.data.session.message);
|
|
22071
22010
|
const ly0session = ly0sessionLoad();
|
|
22072
22011
|
ly0sessionSave({
|
|
22073
22012
|
session: {
|
|
@@ -22077,7 +22016,8 @@ async function ly0request(_ref2) {
|
|
|
22077
22016
|
ly0sessionLose();
|
|
22078
22017
|
return {
|
|
22079
22018
|
code: 1,
|
|
22080
|
-
message: 'session 异常'
|
|
22019
|
+
message: 'session 异常',
|
|
22020
|
+
session: response.data.session
|
|
22081
22021
|
};
|
|
22082
22022
|
}
|
|
22083
22023
|
return response.data;
|
|
@@ -22181,28 +22121,21 @@ function ly0sessionLoseWithUsertbl(usertbl) {
|
|
|
22181
22121
|
}
|
|
22182
22122
|
return lose;
|
|
22183
22123
|
}
|
|
22184
|
-
|
|
22185
|
-
|
|
22186
|
-
|
|
22187
|
-
|
|
22188
|
-
|
|
22189
|
-
|
|
22190
|
-
|
|
22191
|
-
|
|
22192
|
-
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
|
|
22197
|
-
|
|
22198
|
-
|
|
22199
|
-
// 默认 code === '1'
|
|
22200
|
-
router.push(path);
|
|
22201
|
-
}
|
|
22202
|
-
};
|
|
22203
|
-
return {
|
|
22204
|
-
navigate
|
|
22205
|
-
};
|
|
22124
|
+
function navigate(_ref4) {
|
|
22125
|
+
let {
|
|
22126
|
+
code = '1',
|
|
22127
|
+
path
|
|
22128
|
+
} = _ref4;
|
|
22129
|
+
if (code === '0') {
|
|
22130
|
+
// 外部链接
|
|
22131
|
+
window.location.href = path;
|
|
22132
|
+
} else if (code === '1') {
|
|
22133
|
+
// VUE路由
|
|
22134
|
+
router.push(path);
|
|
22135
|
+
} else {
|
|
22136
|
+
// 默认VUE路由
|
|
22137
|
+
router.push(path);
|
|
22138
|
+
}
|
|
22206
22139
|
}
|
|
22207
22140
|
var ly0request$1 = {
|
|
22208
22141
|
domain: domainPara,
|