fix:router issue
This commit is contained in:
parent
f4b7767476
commit
1017ef74c0
3 changed files with 13 additions and 11 deletions
|
|
@ -182,6 +182,14 @@ const menuList = readonly<any[]>([
|
|||
path: "manageWebservices",
|
||||
role: ["SUPER_ADMIN"],
|
||||
},
|
||||
{
|
||||
key: 7,
|
||||
icon: "mdi-bug",
|
||||
activeIcon: "mdi-bug",
|
||||
label: "จัดการปัญหา",
|
||||
path: "manageIssues",
|
||||
role: ["SUPER_ADMIN", "ISSUE"],
|
||||
},
|
||||
]);
|
||||
|
||||
export { menuList };
|
||||
|
|
|
|||
|
|
@ -3,12 +3,11 @@ const Main = () => import("@/modules/07_issues/views/Main.vue");
|
|||
export default [
|
||||
{
|
||||
path: "/issues",
|
||||
name: "issuesMain",
|
||||
name: "manageIssues",
|
||||
component: Main,
|
||||
meta: {
|
||||
Auth: true,
|
||||
Key: "REPORT_ORG",
|
||||
Role: "STAFF",
|
||||
role: ["SUPER_ADMIN", "ISSUE"],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ async function getDataNotification(index: number, type: string) {
|
|||
: e.createdFullName[0],
|
||||
body: e.body ?? "",
|
||||
timereceive: `${date2Thai(e.receiveDate)} ${new Date(
|
||||
e.receiveDate
|
||||
e.receiveDate,
|
||||
).toLocaleTimeString("th-TH", thaiOptions)} น.`,
|
||||
isOpen: e.isOpen,
|
||||
});
|
||||
|
|
@ -255,7 +255,7 @@ function doLogout() {
|
|||
await logoutSSO();
|
||||
},
|
||||
"ยืนยันการออกจากระบบ",
|
||||
"ต้องการออกจากระบบใช่หรือไม่?"
|
||||
"ต้องการออกจากระบบใช่หรือไม่?",
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -379,7 +379,7 @@ watch(
|
|||
notiList.value = updatedNotifications;
|
||||
fetchmsgNoread();
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
const isSsoToken = ref<boolean>(false);
|
||||
|
|
@ -730,7 +730,6 @@ onUnmounted(() => {
|
|||
v-if="
|
||||
menuItem.key == 2 ||
|
||||
menuItem.key == 0 ||
|
||||
menuItem.key == 7 ||
|
||||
menuItem.key == 8 ||
|
||||
menuItem.key == 9 ||
|
||||
menuItem.key == 10 ||
|
||||
|
|
@ -773,7 +772,6 @@ onUnmounted(() => {
|
|||
<div
|
||||
v-if="
|
||||
menuItem.key == 2 ||
|
||||
menuItem.key == 7 ||
|
||||
menuItem.key == 12 ||
|
||||
menuItem.key == 13
|
||||
"
|
||||
|
|
@ -915,7 +913,6 @@ onUnmounted(() => {
|
|||
v-if="
|
||||
menuItem.key == 2 ||
|
||||
menuItem.key == 0 ||
|
||||
menuItem.key == 7 ||
|
||||
menuItem.key == 8 ||
|
||||
menuItem.key == 9 ||
|
||||
menuItem.key == 10 ||
|
||||
|
|
@ -942,7 +939,6 @@ onUnmounted(() => {
|
|||
<div
|
||||
v-if="
|
||||
menuItem.key == 2 ||
|
||||
menuItem.key == 7 ||
|
||||
menuItem.key == 12 ||
|
||||
menuItem.key == 13
|
||||
"
|
||||
|
|
@ -954,7 +950,6 @@ onUnmounted(() => {
|
|||
:label="subMenu.label"
|
||||
v-if="
|
||||
subMenu.key !== 2.0 &&
|
||||
subMenu.key !== 7.1 &&
|
||||
subMenu.key !== 12.0 &&
|
||||
subMenu.key !== 13.0
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue