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/input-number.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/input.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/login.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/main.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/nav.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/page.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/player.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/qr-code.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/radio-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/retrial-auth.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/select-ganged.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/select.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/selector-panel.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/selector.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/sizer.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/steps.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/switch.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/table-form.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/tabs.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/tips.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/tree-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/tree.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/upload.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/utils/util.js
CHANGED
|
@@ -1883,7 +1883,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1883
1883
|
// const logined = getStorage('logined');
|
|
1884
1884
|
// eslint-disable-next-line eqeqeq
|
|
1885
1885
|
if (token || cookie == true || cookie == 1) {
|
|
1886
|
-
|
|
1886
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1887
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1888
|
+
} else {
|
|
1889
|
+
next && next();
|
|
1890
|
+
}
|
|
1887
1891
|
} else {
|
|
1888
1892
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1889
1893
|
ajax({
|
package/lib/wujie.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/wxlogin.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoss-ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.15",
|
|
4
4
|
"description": "eoss内部业务组件",
|
|
5
5
|
"main": "lib/eoss-ui.common.js",
|
|
6
6
|
"files": [
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"gulp-autoprefixer": "^6.0.0",
|
|
113
113
|
"gulp-cssmin": "^0.2.0",
|
|
114
114
|
"gulp-sass": "^4.0.2",
|
|
115
|
-
"highlight.js": "^9.
|
|
115
|
+
"highlight.js": "^11.9.0",
|
|
116
116
|
"html-webpack-plugin": "^3.2.0",
|
|
117
117
|
"json-loader": "^0.5.7",
|
|
118
118
|
"json-templater": "^1.0.4",
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
v-else-if="type === 'handle' && !scope.row.hideHandle"
|
|
377
377
|
v-bind="
|
|
378
378
|
exclAttribute({
|
|
379
|
-
data:
|
|
379
|
+
data: config,
|
|
380
380
|
attrs: ['contents', 'events', 'type', 'width', 'template', 'title']
|
|
381
381
|
})
|
|
382
382
|
"
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
></es-button-group>
|
|
389
389
|
<expand-dom
|
|
390
390
|
v-else-if="render"
|
|
391
|
-
:column="
|
|
391
|
+
:column="config"
|
|
392
392
|
:row="scope.row"
|
|
393
393
|
:render="render"
|
|
394
394
|
:index="indexs"
|
|
@@ -541,9 +541,11 @@ export default {
|
|
|
541
541
|
this.labelClassName ? this.labelClassName : '',
|
|
542
542
|
this.required ? 'es-required' : ''
|
|
543
543
|
].join(' '),
|
|
544
|
+
prop: this.field || this.prop,
|
|
545
|
+
field: this.field,
|
|
544
546
|
...this.$attrs
|
|
545
547
|
};
|
|
546
|
-
return
|
|
548
|
+
return config;
|
|
547
549
|
},
|
|
548
550
|
formOption() {
|
|
549
551
|
return {
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -1901,7 +1901,11 @@ const isLogined = function ({
|
|
|
1901
1901
|
// const logined = getStorage('logined');
|
|
1902
1902
|
// eslint-disable-next-line eqeqeq
|
|
1903
1903
|
if (token || cookie == true || cookie == 1) {
|
|
1904
|
-
|
|
1904
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1905
|
+
window.location.replace(urlJoinParams({ url: `.${to.path}.html`, param: to.query }));
|
|
1906
|
+
} else {
|
|
1907
|
+
next && next();
|
|
1908
|
+
}
|
|
1905
1909
|
} else {
|
|
1906
1910
|
if (
|
|
1907
1911
|
!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') &&
|