@hostlink/nuxt-light 1.42.0 → 1.42.2
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
|
@@ -257,7 +257,13 @@ const onLocalRequest = async (p) => {
|
|
|
257
257
|
p.pagination.rowsPerPage = saved;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
if (Array.isArray(fields)) {
|
|
261
|
+
fields.forEach((f) => {
|
|
262
|
+
builder.add(f);
|
|
263
|
+
});
|
|
264
|
+
} else {
|
|
265
|
+
builder.add(fields);
|
|
266
|
+
}
|
|
261
267
|
let localFilters = getFilterValue();
|
|
262
268
|
if (filters2) {
|
|
263
269
|
localFilters = {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { useLight,
|
|
2
|
+
import { useLight, m } from "#imports";
|
|
3
3
|
import { useRoute } from "vue-router";
|
|
4
|
-
import { ref } from "vue";
|
|
5
4
|
const route = useRoute();
|
|
6
|
-
const { data: obj } = await
|
|
5
|
+
const { data: obj } = await useAsyncData(async () => {
|
|
6
|
+
return collect("User", {
|
|
7
|
+
canUpdate: true,
|
|
8
|
+
canDelete: true
|
|
9
|
+
}).where("user_id", route.params.user_id).first();
|
|
10
|
+
});
|
|
7
11
|
const light = useLight();
|
|
8
12
|
const id = route.params.user_id;
|
|
9
13
|
const reset2fa = async () => {
|