fmui-base 2.1.10 → 2.1.11
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/README.md +1 -0
- package/lib/poppage/check.js +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/poppage/check.js
CHANGED
|
@@ -172,7 +172,12 @@ var PageHome = function (_React$Component) {
|
|
|
172
172
|
}
|
|
173
173
|
this.props.onChange(returnValue);
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
//防止双击选项时back两次
|
|
176
|
+
if (!location.hash.includes('POPPAGE')) {
|
|
177
|
+
return;
|
|
178
|
+
} else {
|
|
179
|
+
history.back();
|
|
180
|
+
}
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
// 触发弹出选择
|
|
@@ -359,7 +364,7 @@ var PageHome = function (_React$Component) {
|
|
|
359
364
|
} else {
|
|
360
365
|
t.refs.table.initState();
|
|
361
366
|
}
|
|
362
|
-
|
|
367
|
+
// 防止双击字段时间戳加了两次 back一次回不去
|
|
363
368
|
if (!location.hash.includes('POPPAGE')) {
|
|
364
369
|
window.history.pushState({
|
|
365
370
|
Poppage: t.state.historyStamp
|
|
@@ -388,7 +393,7 @@ var PageHome = function (_React$Component) {
|
|
|
388
393
|
historyStamp: 'SearchPanel.index_' + Date.now()
|
|
389
394
|
}, function () {
|
|
390
395
|
t.refs.table.initState();
|
|
391
|
-
|
|
396
|
+
// 防止双击字段时间戳加了两次 back一次回不去
|
|
392
397
|
if (!location.hash.includes('POPPAGE')) {
|
|
393
398
|
window.history.pushState({
|
|
394
399
|
Poppage: t.state.historyStamp
|