fix search flashing in prod
This commit is contained in:
parent
4d9741c424
commit
c86c98d000
@ -344,9 +344,13 @@ const auth = await useAuth();
|
|||||||
|
|
||||||
const projectType = ref();
|
const projectType = ref();
|
||||||
function setProjectType() {
|
function setProjectType() {
|
||||||
projectType.value = tags.value.projectTypes.find(
|
const projType = tags.value.projectTypes.find(
|
||||||
(x) => x.id === route.path.replaceAll(/^\/|s\/?$/g, ""), // Removes prefix `/` and suffixes `s` and `s/`
|
(x) => x.id === route.path.replaceAll(/^\/|s\/?$/g, ""), // Removes prefix `/` and suffixes `s` and `s/`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (projType) {
|
||||||
|
projectType.value = projType;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
setProjectType();
|
setProjectType();
|
||||||
router.afterEach(() => {
|
router.afterEach(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user