+
-
+
- میز خدمت
+ custom
+ >
+
+ میز خدمت
@@ -265,12 +226,11 @@
query: categoryURLQuery(item),
}"
v-slot="{ href, navigate, isActive }"
- custom>
+ custom
+ >
{{ item.title }}
-
+
-
@@ -32,7 +27,8 @@ type="text" name="search" v-model="searchableText" - placeholder="عبارت مدنظر خود را بنویسید" /> + placeholder="عبارت مدنظر خود را بنویسید" + /> @@ -52,11 +48,10 @@ }, }" v-slot="{ navigate, href }" - custom> + custom + >
-
+
{{
currentPortal === "ostandari"
? "برو به صفحه ستاد انتخابات"
@@ -77,13 +72,10 @@
params: { portal: currentPortal },
}"
v-slot="{ href, navigate, isActive }"
- custom>
-
- صفحه اصلی
+ custom
+ >
+
+ صفحه اصلی
@@ -94,13 +86,10 @@
params: { portal: currentPortal },
}"
v-slot="{ navigate, href, isActive }"
- custom>
-
- تماس با ما
+ custom
+ >
+
+ تماس با ما
@@ -111,13 +100,10 @@
params: { portal: currentPortal },
}"
v-slot="{ navigate, href, isActive }"
- custom>
-
- میز خدمت
+ custom
+ >
+
+ میز خ2دمت
@@ -137,20 +123,14 @@
page: 1,
},
}"
- v-slot="{
- navigate,
- href,
- isActive,
- }"
- custom>
+ v-slot="{ navigate, href, isActive }"
+ custom
+ >
- عکس
+ :class="isActive ? 'active' : null"
+ >
+ عکس
@@ -166,20 +146,14 @@
page: 1,
},
}"
- v-slot="{
- navigate,
- href,
- isActive,
- }"
- custom>
+ v-slot="{ navigate, href, isActive }"
+ custom
+ >
- فیلم
+ :class="isActive ? 'active' : null"
+ >
+ فیلم
@@ -195,42 +169,32 @@
page: 1,
},
}"
- v-slot="{
- navigate,
- href,
- isActive,
- }"
- custom>
+ v-slot="{ navigate, href, isActive }"
+ custom
+ >
- گرافیک
+ :class="isActive ? 'active' : null"
+ >
+ گرافیک
-
- کتابخانه دیجیتال
+
-
-
+ کتابخانه دیجیتال
+
+
@@ -242,13 +206,10 @@
params: { portal: currentPortal },
}"
v-slot="{ navigate, href, isActive }"
- custom>
- -
@@ -288,9 +248,9 @@
:data="item.childs"
:props="defaultProps"
accordion
- ref="tree">
-
- - {{ node.label }} + :class="isActive ? 'active' : null" + > + {{ + node.label + }}
+ ref="tree"
+ >
+
+ :class="!data.childs.length && 'test'"
+ >
@@ -441,8 +389,7 @@ export default {
type: item.defaultPageType,
id: item._id,
};
- if (item.defaultPageType === "news")
- return { ...query, page: 1 };
+ if (item.defaultPageType === "news") return { ...query, page: 1 };
if (item.defaultPageType === "gallery")
return { ...query, galleryType: "image", page: 1 };
else return query;
diff --git a/components/SiteHeader.vue b/components/SiteHeader.vue
index d5a4630..5701311 100644
--- a/components/SiteHeader.vue
+++ b/components/SiteHeader.vue
@@ -2,12 +2,20 @@
@@ -37,9 +57,14 @@
-
+
@@ -21,15 +29,27 @@
-
- {{ jDate2(counterDown.expireDate) + ' مانده تا ' + counterDown.title }}
+
+ {{
+ jDate2(counterDown.expireDate) +
+ " مانده تا " +
+ counterDown.title
+ }}
-
+
+