eoss-ui 0.5.29 → 0.5.31
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 +20 -3
- package/lib/button.js +20 -3
- package/lib/cascader.js +18 -15
- package/lib/checkbox-group.js +39 -11
- package/lib/data-table-form.js +20 -3
- package/lib/data-table.js +34 -16
- package/lib/date-picker.js +20 -3
- package/lib/dialog.js +20 -3
- package/lib/eoss-ui.common.js +1810 -1809
- package/lib/flow-group.js +22 -5
- package/lib/flow-list.js +20 -3
- package/lib/flow.js +20 -3
- package/lib/form.js +50 -14
- package/lib/handle-user.js +20 -3
- package/lib/handler.js +20 -3
- package/lib/index.js +1 -1
- package/lib/input-number.js +20 -3
- package/lib/input.js +36 -10
- package/lib/login.js +45 -126
- package/lib/main.js +29 -12
- package/lib/nav.js +20 -3
- package/lib/page.js +20 -3
- package/lib/player.js +20 -3
- package/lib/qr-code.js +20 -3
- package/lib/radio-group.js +23 -6
- package/lib/retrial-auth.js +20 -3
- package/lib/select-ganged.js +20 -3
- package/lib/select.js +20 -3
- package/lib/selector-panel.js +20 -3
- package/lib/selector.js +23 -6
- package/lib/sizer.js +20 -3
- package/lib/steps.js +20 -3
- package/lib/switch.js +20 -3
- package/lib/table-form.js +20 -3
- package/lib/tabs.js +1626 -1570
- package/lib/tips.js +20 -3
- package/lib/tree-group.js +20 -3
- package/lib/tree.js +20 -3
- package/lib/upload.js +20 -3
- package/lib/utils/util.js +20 -3
- package/lib/wujie.js +20 -3
- package/lib/wxlogin.js +20 -3
- package/package.json +2 -2
- package/packages/cascader/src/main.vue +24 -19
- package/packages/checkbox-group/src/main.vue +14 -9
- package/packages/data-table/src/column.vue +9 -7
- package/packages/flow-group/src/main.vue +1 -1
- package/packages/form/src/main.vue +8 -1
- package/packages/input/src/main.vue +20 -16
- package/packages/login/src/main.vue +8 -3
- package/packages/login/src/resetPassword.vue +11 -114
- package/packages/main/src/userinfo.vue +5 -2
- package/packages/radio-group/src/main.vue +1 -1
- package/packages/selector/src/main.vue +1 -1
- package/packages/tabs/src/main.vue +563 -542
- package/src/index.js +1 -1
- package/src/utils/util.js +23 -3
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -138,18 +138,15 @@ const ajax = function ({
|
|
|
138
138
|
) {
|
|
139
139
|
if (
|
|
140
140
|
localStorage.getItem('storage') === 'localStorage' ||
|
|
141
|
-
localStorage.getItem('ssId') ||
|
|
142
141
|
localStorage.getItem('token') ||
|
|
143
142
|
localStorage.getItem('Authorization')
|
|
144
143
|
) {
|
|
145
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
146
144
|
localStorage.setItem('token', response.headers.authorization);
|
|
147
145
|
localStorage.setItem(
|
|
148
146
|
'Authorization',
|
|
149
147
|
response.headers.authorization
|
|
150
148
|
);
|
|
151
149
|
} else {
|
|
152
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
153
150
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
154
151
|
sessionStorage.setItem(
|
|
155
152
|
'Authorization',
|
|
@@ -157,6 +154,17 @@ const ajax = function ({
|
|
|
157
154
|
);
|
|
158
155
|
}
|
|
159
156
|
}
|
|
157
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) &&
|
|
158
|
+
(response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
159
|
+
if (
|
|
160
|
+
localStorage.getItem('storage') === 'localStorage' ||
|
|
161
|
+
localStorage.getItem('ssId')
|
|
162
|
+
) {
|
|
163
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
164
|
+
} else {
|
|
165
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
160
168
|
if (response.status === 200) {
|
|
161
169
|
if (
|
|
162
170
|
response.data.rCode === 64 ||
|
|
@@ -1842,6 +1850,17 @@ const indexOfObj = function (arry, target, key) {
|
|
|
1842
1850
|
return -1;
|
|
1843
1851
|
};
|
|
1844
1852
|
|
|
1853
|
+
/**
|
|
1854
|
+
* isExist
|
|
1855
|
+
* @desc:判断是否存在
|
|
1856
|
+
* @author huangbo
|
|
1857
|
+
* @date 2022年5月7日
|
|
1858
|
+
* @param {Object} [obj] -
|
|
1859
|
+
**/
|
|
1860
|
+
const isExist = function(obj) {
|
|
1861
|
+
return obj !== undefined && obj !== null && obj === '';
|
|
1862
|
+
};
|
|
1863
|
+
|
|
1845
1864
|
/**
|
|
1846
1865
|
* isFunction
|
|
1847
1866
|
* @desc:判断是否是函数
|
|
@@ -2867,6 +2886,7 @@ export default {
|
|
|
2867
2886
|
hsvTorgb,
|
|
2868
2887
|
identical,
|
|
2869
2888
|
indexOfObj,
|
|
2889
|
+
isExist,
|
|
2870
2890
|
isFunction,
|
|
2871
2891
|
isLogged,
|
|
2872
2892
|
isLogined,
|