@yoooloo42/joker 1.0.198 → 1.0.200
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 +27 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +27 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import router from '@/router';
|
|
1
2
|
import { ElMessageBox, ElMessage } from 'element-plus';
|
|
2
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
|
|
|
@@ -22000,8 +22001,8 @@ async function ly0request$1(_ref2) {
|
|
|
22000
22001
|
});
|
|
22001
22002
|
|
|
22002
22003
|
// session 异常
|
|
22003
|
-
if (response.data.
|
|
22004
|
-
console.log('session异常', response.data.
|
|
22004
|
+
if (response.data.session && response.data.session.code !== 0) {
|
|
22005
|
+
console.log('session异常', response.data.session.message);
|
|
22005
22006
|
const ly0session = ly0sessionLoad();
|
|
22006
22007
|
ly0sessionSave({
|
|
22007
22008
|
session: {
|
|
@@ -22011,7 +22012,8 @@ async function ly0request$1(_ref2) {
|
|
|
22011
22012
|
ly0sessionLose();
|
|
22012
22013
|
return {
|
|
22013
22014
|
code: 1,
|
|
22014
|
-
message: 'session 异常'
|
|
22015
|
+
message: 'session 异常',
|
|
22016
|
+
session: response.data.session
|
|
22015
22017
|
};
|
|
22016
22018
|
}
|
|
22017
22019
|
return response.data;
|
|
@@ -22115,6 +22117,26 @@ function ly0sessionLoseWithUsertbl(usertbl) {
|
|
|
22115
22117
|
}
|
|
22116
22118
|
return lose;
|
|
22117
22119
|
}
|
|
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({
|
|
22131
|
+
path
|
|
22132
|
+
});
|
|
22133
|
+
} else {
|
|
22134
|
+
// 默认VUE路由
|
|
22135
|
+
router.push({
|
|
22136
|
+
path
|
|
22137
|
+
});
|
|
22138
|
+
}
|
|
22139
|
+
}
|
|
22118
22140
|
var ly0request = {
|
|
22119
22141
|
domain: domainPara,
|
|
22120
22142
|
upload: upload$1,
|
|
@@ -22127,7 +22149,8 @@ var ly0request = {
|
|
|
22127
22149
|
ly0sessionLoad,
|
|
22128
22150
|
ly0sessionClear,
|
|
22129
22151
|
ly0sessionLose,
|
|
22130
|
-
ly0sessionLoseWithUsertbl
|
|
22152
|
+
ly0sessionLoseWithUsertbl,
|
|
22153
|
+
navigate
|
|
22131
22154
|
};
|
|
22132
22155
|
|
|
22133
22156
|
var request = {
|