@yoooloo42/joker 1.0.198 → 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 +23 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +23 -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,22 @@ 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(path);
|
|
22131
|
+
} else {
|
|
22132
|
+
// 默认VUE路由
|
|
22133
|
+
router.push(path);
|
|
22134
|
+
}
|
|
22135
|
+
}
|
|
22118
22136
|
var ly0request = {
|
|
22119
22137
|
domain: domainPara,
|
|
22120
22138
|
upload: upload$1,
|
|
@@ -22127,7 +22145,8 @@ var ly0request = {
|
|
|
22127
22145
|
ly0sessionLoad,
|
|
22128
22146
|
ly0sessionClear,
|
|
22129
22147
|
ly0sessionLose,
|
|
22130
|
-
ly0sessionLoseWithUsertbl
|
|
22148
|
+
ly0sessionLoseWithUsertbl,
|
|
22149
|
+
navigate
|
|
22131
22150
|
};
|
|
22132
22151
|
|
|
22133
22152
|
var request = {
|