แก้ path วินัย

This commit is contained in:
STW_TTTY\stwtt 2024-09-24 10:07:49 +07:00
parent 3fc9258d99
commit fc9f22ba2b
4 changed files with 84 additions and 45 deletions

View file

@ -5,16 +5,19 @@ import router from "@/router";
import config from "@/app.config";
import http from "@/plugins/http";
import { useQuasar } from "quasar";
import { useRoute } from "vue-router";
import { useCounterMixin } from "@/stores/mixin";
import { useDisciplineChannelDataStore } from "@/modules/11_discipline/store/ChannelStore";
import { useDisciplineMainStore } from "@/modules/11_discipline/store/Main";
import { checkPermission } from "@/utils/permissions";
import Header from "@/components/DialogHeader.vue";
const $q = useQuasar(); // noti quasar
const dataStore = useDisciplineChannelDataStore();
const mainStore = useDisciplineMainStore();
const route = useRoute();
const mixin = useCounterMixin();
const { dialogRemove, showLoader, messageError, hideLoader, success } = mixin;
@ -75,7 +78,11 @@ function clickRead(check: boolean, name: string) {
async function getComplaintChanal() {
showLoader();
await http
.get(config.API.complaintChannel())
.get(
config.API.complaintListOp(
mainStore.pathComplaintsChannal(route.name as string)
)
)
.then((res) => {
const data = res.data.result.data;
dataStore.fetchData(data);