@paris-ias/list 1.0.65 → 1.0.66
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/module.json
CHANGED
|
@@ -113,7 +113,16 @@ export const useRootStore = defineStore("rootStore", {
|
|
|
113
113
|
resetState(type) {
|
|
114
114
|
const { $stores, $models } = useNuxtApp();
|
|
115
115
|
console.log("$models[type]: ", $models[type]);
|
|
116
|
-
|
|
116
|
+
const store = $stores[type];
|
|
117
|
+
if (store.filters) {
|
|
118
|
+
for (const key in store.filters) {
|
|
119
|
+
if (store.filters[key].multiple) {
|
|
120
|
+
store.filters[key].value = [];
|
|
121
|
+
} else {
|
|
122
|
+
store.filters[key].value = "";
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
117
126
|
console.log("resetState");
|
|
118
127
|
this.search = "";
|
|
119
128
|
this.page = 1;
|