@monoui/vuejs 1.1.41 → 1.1.43
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/main.js +2 -2
- package/package.json +1 -1
- package/src/components/Table/Table.vue +5 -1
package/package.json
CHANGED
|
@@ -495,13 +495,16 @@ export default {
|
|
|
495
495
|
this.addPopStateListener();
|
|
496
496
|
},
|
|
497
497
|
async mounted() {
|
|
498
|
-
this.
|
|
498
|
+
if (this.history)
|
|
499
|
+
this.loadHistory();
|
|
500
|
+
|
|
499
501
|
if (this.autoLoad) {
|
|
500
502
|
await this.getValues();
|
|
501
503
|
}
|
|
502
504
|
},
|
|
503
505
|
methods: {
|
|
504
506
|
addPopStateListener() {
|
|
507
|
+
if (this.history)
|
|
505
508
|
window.addEventListener("popstate", this.popStateEvent);
|
|
506
509
|
},
|
|
507
510
|
removePopStateListener() {
|
|
@@ -922,6 +925,7 @@ export default {
|
|
|
922
925
|
}
|
|
923
926
|
},
|
|
924
927
|
replaceHistory(state, storage = this.historyStorage) {
|
|
928
|
+
if (!this.history) return;
|
|
925
929
|
if (storage === "query") {
|
|
926
930
|
let url;
|
|
927
931
|
if (state) url = state;
|