@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.esm.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import router from '@/router';
|
|
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';
|
|
3
4
|
|
|
4
5
|
function _mergeNamespaces(n, m) {
|
|
5
6
|
m.forEach(function (e) {
|
|
@@ -21957,68 +21958,6 @@ const {
|
|
|
21957
21958
|
mergeConfig
|
|
21958
21959
|
} = axios;
|
|
21959
21960
|
|
|
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
|
-
|
|
22022
21961
|
const domainPara = 'http://127.0.0.1:443';
|
|
22023
21962
|
const upload$1 = '/ly0/upload-req/file';
|
|
22024
21963
|
const upload_image = '/ly0/upload-req/image';
|
|
@@ -22062,8 +22001,8 @@ async function ly0request$1(_ref2) {
|
|
|
22062
22001
|
});
|
|
22063
22002
|
|
|
22064
22003
|
// session 异常
|
|
22065
|
-
if (response.data.
|
|
22066
|
-
console.log('session异常', response.data.
|
|
22004
|
+
if (response.data.session && response.data.session.code !== 0) {
|
|
22005
|
+
console.log('session异常', response.data.session.message);
|
|
22067
22006
|
const ly0session = ly0sessionLoad();
|
|
22068
22007
|
ly0sessionSave({
|
|
22069
22008
|
session: {
|
|
@@ -22073,7 +22012,8 @@ async function ly0request$1(_ref2) {
|
|
|
22073
22012
|
ly0sessionLose();
|
|
22074
22013
|
return {
|
|
22075
22014
|
code: 1,
|
|
22076
|
-
message: 'session 异常'
|
|
22015
|
+
message: 'session 异常',
|
|
22016
|
+
session: response.data.session
|
|
22077
22017
|
};
|
|
22078
22018
|
}
|
|
22079
22019
|
return response.data;
|
|
@@ -22177,28 +22117,21 @@ function ly0sessionLoseWithUsertbl(usertbl) {
|
|
|
22177
22117
|
}
|
|
22178
22118
|
return lose;
|
|
22179
22119
|
}
|
|
22180
|
-
|
|
22181
|
-
|
|
22182
|
-
|
|
22183
|
-
|
|
22184
|
-
|
|
22185
|
-
|
|
22186
|
-
|
|
22187
|
-
|
|
22188
|
-
|
|
22189
|
-
|
|
22190
|
-
|
|
22191
|
-
|
|
22192
|
-
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
// 默认 code === '1'
|
|
22196
|
-
router.push(path);
|
|
22197
|
-
}
|
|
22198
|
-
};
|
|
22199
|
-
return {
|
|
22200
|
-
navigate
|
|
22201
|
-
};
|
|
22120
|
+
function navigate(_ref4) {
|
|
22121
|
+
let {
|
|
22122
|
+
code = '1',
|
|
22123
|
+
path
|
|
22124
|
+
} = _ref4;
|
|
22125
|
+
if (code === '0') {
|
|
22126
|
+
// 外部链接
|
|
22127
|
+
window.location.href = path;
|
|
22128
|
+
} else if (code === '1') {
|
|
22129
|
+
// VUE路由
|
|
22130
|
+
router.push(path);
|
|
22131
|
+
} else {
|
|
22132
|
+
// 默认VUE路由
|
|
22133
|
+
router.push(path);
|
|
22134
|
+
}
|
|
22202
22135
|
}
|
|
22203
22136
|
var ly0request = {
|
|
22204
22137
|
domain: domainPara,
|