@fy-/fws-vue 2.1.23 → 2.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui/DefaultPaging.vue +22 -17
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ import { getURL, hasFW } from '@fy-/fws-js'
|
|
|
8
8
|
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/vue/24/solid'
|
|
9
9
|
import { useServerHead } from '@unhead/vue'
|
|
10
10
|
import {
|
|
11
|
+
computed,
|
|
11
12
|
onMounted,
|
|
12
13
|
onUnmounted,
|
|
13
14
|
ref,
|
|
@@ -109,24 +110,28 @@ onUnmounted(() => {
|
|
|
109
110
|
})
|
|
110
111
|
|
|
111
112
|
checkPageNumber(props.items.page_no)
|
|
112
|
-
const result: any = []
|
|
113
|
-
if (prevNextSeo.value.next) {
|
|
114
|
-
result.push({
|
|
115
|
-
href: prevNextSeo.value.next,
|
|
116
|
-
rel: 'next',
|
|
117
|
-
key: 'next',
|
|
118
|
-
})
|
|
119
|
-
}
|
|
120
|
-
if (prevNextSeo.value.prev) {
|
|
121
|
-
result.push({
|
|
122
|
-
href: prevNextSeo.value.prev,
|
|
123
|
-
rel: 'prev',
|
|
124
|
-
key: 'prev',
|
|
125
|
-
})
|
|
126
|
-
}
|
|
127
|
-
|
|
128
113
|
useServerHead({
|
|
129
|
-
link:
|
|
114
|
+
link: computed(() => {
|
|
115
|
+
const result: any = []
|
|
116
|
+
if (prevNextSeo.value.next) {
|
|
117
|
+
result.push({
|
|
118
|
+
href: prevNextSeo.value.next,
|
|
119
|
+
rel: 'next',
|
|
120
|
+
key: 'next',
|
|
121
|
+
hid: 'paging-next',
|
|
122
|
+
})
|
|
123
|
+
}
|
|
124
|
+
if (prevNextSeo.value.prev) {
|
|
125
|
+
result.push({
|
|
126
|
+
href: prevNextSeo.value.prev,
|
|
127
|
+
rel: 'prev',
|
|
128
|
+
key: 'prev',
|
|
129
|
+
hid: 'paging-prev',
|
|
130
|
+
})
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return result
|
|
134
|
+
}),
|
|
130
135
|
})
|
|
131
136
|
</script>
|
|
132
137
|
|