eoss-ui 0.5.14 → 0.5.15
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/lib/button-group.js +5 -1
- package/lib/button.js +5 -1
- package/lib/checkbox-group.js +5 -1
- package/lib/data-table-form.js +5 -1
- package/lib/data-table.js +18 -18
- package/lib/date-picker.js +5 -1
- package/lib/dialog.js +5 -1
- package/lib/eoss-ui.common.js +19 -19
- package/lib/flow-group.js +5 -1
- package/lib/flow-list.js +5 -1
- package/lib/flow.js +5 -1
- package/lib/form.js +5 -1
- package/lib/handle-user.js +5 -1
- package/lib/handler.js +5 -1
- package/lib/index.js +1 -1
- package/lib/input-number.js +5 -1
- package/lib/input.js +5 -1
- package/lib/login.js +5 -1
- package/lib/main.js +5 -1
- package/lib/nav.js +5 -1
- package/lib/page.js +5 -1
- package/lib/player.js +5 -1
- package/lib/qr-code.js +5 -1
- package/lib/radio-group.js +5 -1
- package/lib/retrial-auth.js +5 -1
- package/lib/select-ganged.js +5 -1
- package/lib/select.js +5 -1
- package/lib/selector-panel.js +5 -1
- package/lib/selector.js +5 -1
- package/lib/sizer.js +5 -1
- package/lib/steps.js +5 -1
- package/lib/switch.js +5 -1
- package/lib/table-form.js +5 -1
- package/lib/tabs.js +5 -1
- package/lib/tips.js +5 -1
- package/lib/tree-group.js +5 -1
- package/lib/tree.js +5 -1
- package/lib/upload.js +5 -1
- package/lib/utils/util.js +5 -1
- package/lib/wujie.js +5 -1
- package/lib/wxlogin.js +5 -1
- package/package.json +2 -2
- package/packages/data-table/src/column.vue +5 -3
- package/src/index.js +1 -1
- package/src/utils/util.js +5 -1
package/lib/button-group.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
package/lib/button.js
CHANGED
|
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1966
1966
|
// const logined = getStorage('logined');
|
|
1967
1967
|
// eslint-disable-next-line eqeqeq
|
|
1968
1968
|
if (token || cookie == true || cookie == 1) {
|
|
1969
|
-
|
|
1969
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1970
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1971
|
+
} else {
|
|
1972
|
+
next && next();
|
|
1973
|
+
}
|
|
1970
1974
|
} else {
|
|
1971
1975
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1972
1976
|
ajax({
|
package/lib/checkbox-group.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
package/lib/data-table-form.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
package/lib/data-table.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
|
@@ -4154,8 +4158,8 @@ childrenvue_type_template_id_29bcbc72_render._withStripped = true
|
|
|
4154
4158
|
|
|
4155
4159
|
// CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
|
|
4156
4160
|
|
|
4157
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=template&id=
|
|
4158
|
-
var
|
|
4161
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=template&id=cd703de2&
|
|
4162
|
+
var columnvue_type_template_id_cd703de2_render = function () {
|
|
4159
4163
|
var _vm = this
|
|
4160
4164
|
var _h = _vm.$createElement
|
|
4161
4165
|
var _c = _vm._self._c || _h
|
|
@@ -4768,10 +4772,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
4768
4772
|
},
|
|
4769
4773
|
"es-button-group",
|
|
4770
4774
|
_vm.exclAttribute({
|
|
4771
|
-
data:
|
|
4772
|
-
prop: this.prop,
|
|
4773
|
-
field: this.field,
|
|
4774
|
-
}),
|
|
4775
|
+
data: _vm.config,
|
|
4775
4776
|
attrs: [
|
|
4776
4777
|
"contents",
|
|
4777
4778
|
"events",
|
|
@@ -4787,10 +4788,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
4787
4788
|
: _vm.render
|
|
4788
4789
|
? _c("expand-dom", {
|
|
4789
4790
|
attrs: {
|
|
4790
|
-
column:
|
|
4791
|
-
prop: this.prop,
|
|
4792
|
-
field: this.field,
|
|
4793
|
-
}),
|
|
4791
|
+
column: _vm.config,
|
|
4794
4792
|
row: scope.row,
|
|
4795
4793
|
render: _vm.render,
|
|
4796
4794
|
index: _vm.indexs,
|
|
@@ -4831,11 +4829,11 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
4831
4829
|
2
|
|
4832
4830
|
)
|
|
4833
4831
|
}
|
|
4834
|
-
var
|
|
4835
|
-
|
|
4832
|
+
var columnvue_type_template_id_cd703de2_staticRenderFns = []
|
|
4833
|
+
columnvue_type_template_id_cd703de2_render._withStripped = true
|
|
4836
4834
|
|
|
4837
4835
|
|
|
4838
|
-
// CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=
|
|
4836
|
+
// CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=cd703de2&
|
|
4839
4837
|
|
|
4840
4838
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
4841
4839
|
var regenerator_ = __webpack_require__(12);
|
|
@@ -5380,9 +5378,11 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
5380
5378
|
sortable: this.sortable || this.sort,
|
|
5381
5379
|
minWidth: this.minWidth || this.table.minWidth || minWidth,
|
|
5382
5380
|
className: [this.className ? this.className : '', this.type ? ' es-table-' + this.type + '-box' : '', this.showOverflowTooltip ? ' es-text-ellipsis' : ''].join(' '),
|
|
5383
|
-
labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' ')
|
|
5381
|
+
labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' '),
|
|
5382
|
+
prop: this.field || this.prop,
|
|
5383
|
+
field: this.field
|
|
5384
5384
|
}, this.$attrs);
|
|
5385
|
-
return
|
|
5385
|
+
return config;
|
|
5386
5386
|
},
|
|
5387
5387
|
formOption: function formOption() {
|
|
5388
5388
|
return _extends({
|
|
@@ -5664,8 +5664,8 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
5664
5664
|
|
|
5665
5665
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
5666
5666
|
src_columnvue_type_script_lang_js_,
|
|
5667
|
-
|
|
5668
|
-
|
|
5667
|
+
columnvue_type_template_id_cd703de2_render,
|
|
5668
|
+
columnvue_type_template_id_cd703de2_staticRenderFns,
|
|
5669
5669
|
false,
|
|
5670
5670
|
null,
|
|
5671
5671
|
null,
|
package/lib/date-picker.js
CHANGED
|
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1966
1966
|
// const logined = getStorage('logined');
|
|
1967
1967
|
// eslint-disable-next-line eqeqeq
|
|
1968
1968
|
if (token || cookie == true || cookie == 1) {
|
|
1969
|
-
|
|
1969
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1970
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1971
|
+
} else {
|
|
1972
|
+
next && next();
|
|
1973
|
+
}
|
|
1970
1974
|
} else {
|
|
1971
1975
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1972
1976
|
ajax({
|
package/lib/dialog.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
package/lib/eoss-ui.common.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
|
@@ -5825,8 +5829,8 @@ childrenvue_type_template_id_29bcbc72_render._withStripped = true
|
|
|
5825
5829
|
|
|
5826
5830
|
// CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
|
|
5827
5831
|
|
|
5828
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=template&id=
|
|
5829
|
-
var
|
|
5832
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=template&id=cd703de2&
|
|
5833
|
+
var columnvue_type_template_id_cd703de2_render = function () {
|
|
5830
5834
|
var _vm = this
|
|
5831
5835
|
var _h = _vm.$createElement
|
|
5832
5836
|
var _c = _vm._self._c || _h
|
|
@@ -6439,10 +6443,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
6439
6443
|
},
|
|
6440
6444
|
"es-button-group",
|
|
6441
6445
|
_vm.exclAttribute({
|
|
6442
|
-
data:
|
|
6443
|
-
prop: this.prop,
|
|
6444
|
-
field: this.field,
|
|
6445
|
-
}),
|
|
6446
|
+
data: _vm.config,
|
|
6446
6447
|
attrs: [
|
|
6447
6448
|
"contents",
|
|
6448
6449
|
"events",
|
|
@@ -6458,10 +6459,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
6458
6459
|
: _vm.render
|
|
6459
6460
|
? _c("expand-dom", {
|
|
6460
6461
|
attrs: {
|
|
6461
|
-
column:
|
|
6462
|
-
prop: this.prop,
|
|
6463
|
-
field: this.field,
|
|
6464
|
-
}),
|
|
6462
|
+
column: _vm.config,
|
|
6465
6463
|
row: scope.row,
|
|
6466
6464
|
render: _vm.render,
|
|
6467
6465
|
index: _vm.indexs,
|
|
@@ -6502,11 +6500,11 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
6502
6500
|
2
|
|
6503
6501
|
)
|
|
6504
6502
|
}
|
|
6505
|
-
var
|
|
6506
|
-
|
|
6503
|
+
var columnvue_type_template_id_cd703de2_staticRenderFns = []
|
|
6504
|
+
columnvue_type_template_id_cd703de2_render._withStripped = true
|
|
6507
6505
|
|
|
6508
6506
|
|
|
6509
|
-
// CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=
|
|
6507
|
+
// CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=cd703de2&
|
|
6510
6508
|
|
|
6511
6509
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
6512
6510
|
var regenerator_ = __webpack_require__(2);
|
|
@@ -7048,9 +7046,11 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
7048
7046
|
sortable: this.sortable || this.sort,
|
|
7049
7047
|
minWidth: this.minWidth || this.table.minWidth || minWidth,
|
|
7050
7048
|
className: [this.className ? this.className : '', this.type ? ' es-table-' + this.type + '-box' : '', this.showOverflowTooltip ? ' es-text-ellipsis' : ''].join(' '),
|
|
7051
|
-
labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' ')
|
|
7049
|
+
labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' '),
|
|
7050
|
+
prop: this.field || this.prop,
|
|
7051
|
+
field: this.field
|
|
7052
7052
|
}, this.$attrs);
|
|
7053
|
-
return
|
|
7053
|
+
return config;
|
|
7054
7054
|
},
|
|
7055
7055
|
formOption: function formOption() {
|
|
7056
7056
|
return columnvue_type_script_lang_js_extends({
|
|
@@ -7329,8 +7329,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
7329
7329
|
|
|
7330
7330
|
var column_component = normalizeComponent(
|
|
7331
7331
|
src_columnvue_type_script_lang_js_,
|
|
7332
|
-
|
|
7333
|
-
|
|
7332
|
+
columnvue_type_template_id_cd703de2_render,
|
|
7333
|
+
columnvue_type_template_id_cd703de2_staticRenderFns,
|
|
7334
7334
|
false,
|
|
7335
7335
|
null,
|
|
7336
7336
|
null,
|
|
@@ -70589,7 +70589,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
70589
70589
|
}
|
|
70590
70590
|
|
|
70591
70591
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
70592
|
-
version: '0.5.
|
|
70592
|
+
version: '0.5.15',
|
|
70593
70593
|
install: install,
|
|
70594
70594
|
Button: packages_button,
|
|
70595
70595
|
ButtonGroup: button_group,
|
package/lib/flow-group.js
CHANGED
|
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1966
1966
|
// const logined = getStorage('logined');
|
|
1967
1967
|
// eslint-disable-next-line eqeqeq
|
|
1968
1968
|
if (token || cookie == true || cookie == 1) {
|
|
1969
|
-
|
|
1969
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1970
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1971
|
+
} else {
|
|
1972
|
+
next && next();
|
|
1973
|
+
}
|
|
1970
1974
|
} else {
|
|
1971
1975
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1972
1976
|
ajax({
|
package/lib/flow-list.js
CHANGED
|
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1966
1966
|
// const logined = getStorage('logined');
|
|
1967
1967
|
// eslint-disable-next-line eqeqeq
|
|
1968
1968
|
if (token || cookie == true || cookie == 1) {
|
|
1969
|
-
|
|
1969
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1970
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1971
|
+
} else {
|
|
1972
|
+
next && next();
|
|
1973
|
+
}
|
|
1970
1974
|
} else {
|
|
1971
1975
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1972
1976
|
ajax({
|
package/lib/flow.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
package/lib/form.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
package/lib/handle-user.js
CHANGED
|
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1966
1966
|
// const logined = getStorage('logined');
|
|
1967
1967
|
// eslint-disable-next-line eqeqeq
|
|
1968
1968
|
if (token || cookie == true || cookie == 1) {
|
|
1969
|
-
|
|
1969
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1970
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1971
|
+
} else {
|
|
1972
|
+
next && next();
|
|
1973
|
+
}
|
|
1970
1974
|
} else {
|
|
1971
1975
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1972
1976
|
ajax({
|
package/lib/handler.js
CHANGED
|
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1966
1966
|
// const logined = getStorage('logined');
|
|
1967
1967
|
// eslint-disable-next-line eqeqeq
|
|
1968
1968
|
if (token || cookie == true || cookie == 1) {
|
|
1969
|
-
|
|
1969
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1970
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1971
|
+
} else {
|
|
1972
|
+
next && next();
|
|
1973
|
+
}
|
|
1970
1974
|
} else {
|
|
1971
1975
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1972
1976
|
ajax({
|