This commit is contained in:
Warunee Tamkoo 2024-11-28 12:24:27 +07:00
parent 2ef73eb37e
commit b27a3cb20e

View file

@ -33,9 +33,9 @@ import { useCounterMixin } from "@/stores/mixin";
*/
const $q = useQuasar();
const store = useRequestEditStore();
const link = ref<string>('')
const link = ref<string>("");
const router = useRouter();
const dataStore = useDataStore()
const dataStore = useDataStore();
const { showLoader, hideLoader, messageError, dialogRemove, success } =
useCounterMixin();
@ -150,7 +150,9 @@ function fetchListRequset() {
};
showLoader();
http
.get(config.API.requestEditByType(link.value) + `user`, { params: queryParams })
.get(config.API.requestEditByType(link.value) + `user`, {
params: queryParams,
})
.then((res) => {
const data = res.data.result;
maxPage.value = Math.ceil(data.total / pageSize.value);
@ -276,7 +278,7 @@ watch(
}
);
onMounted(async() => {
onMounted(async () => {
link.value = await dataStore.getProFileType();
fetchListRequset();
});
@ -374,7 +376,6 @@ onMounted(async() => {
map-options
:options="columns"
option-value="name"
class="col-xs-12 col-sm-3 col-md-2"
style="min-width: 140px"
/>
</div>