flat: update Process.client
This commit is contained in:
@@ -20,15 +20,15 @@ export function useColumnCount(onChange = () => {}) {
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
columnCount.value = 2
|
columnCount.value = 2
|
||||||
calcColumn()
|
calcColumn()
|
||||||
if (process.client) {
|
// if (process.client) {
|
||||||
window.addEventListener('resize', calcColumn)
|
window.addEventListener('resize', calcColumn)
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
if (process.client) {
|
// if (process.client) {
|
||||||
window.removeEventListener('resize', calcColumn)
|
window.removeEventListener('resize', calcColumn)
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
|
|
||||||
// 列数变化时执行回调
|
// 列数变化时执行回调
|
||||||
|
@@ -175,17 +175,17 @@ const rangeOptions = ref([
|
|||||||
{ value: 1, text: '最热' },
|
{ value: 1, text: '最热' },
|
||||||
{ value: 2, text: '最新发布' },
|
{ value: 2, text: '最新发布' },
|
||||||
]);
|
]);
|
||||||
const jobList = ref([
|
// const jobList = ref([
|
||||||
{ name: '销售顾问', highlight: true },
|
// { name: '销售顾问', highlight: true },
|
||||||
{ name: '销售管理', highlight: true },
|
// { name: '销售管理', highlight: true },
|
||||||
{ name: '销售工程师', highlight: true },
|
// { name: '销售工程师', highlight: true },
|
||||||
{ name: '算法工程师', highlight: false },
|
// { name: '算法工程师', highlight: false },
|
||||||
{ name: '生产经理', highlight: false },
|
// { name: '生产经理', highlight: false },
|
||||||
{ name: '市场策划', highlight: false },
|
// { name: '市场策划', highlight: false },
|
||||||
{ name: '商务服务', highlight: false },
|
// { name: '商务服务', highlight: false },
|
||||||
{ name: '客服', highlight: false },
|
// { name: '客服', highlight: false },
|
||||||
{ name: '创意总监', highlight: false },
|
// { name: '创意总监', highlight: false },
|
||||||
]);
|
// ]);
|
||||||
|
|
||||||
const { columnCount } = useColumnCount(() => {
|
const { columnCount } = useColumnCount(() => {
|
||||||
pageState.pageSize = 10 * (columnCount.value - 1);
|
pageState.pageSize = 10 * (columnCount.value - 1);
|
||||||
@@ -726,4 +726,4 @@ function dataToImg(data) {
|
|||||||
.isBut{
|
.isBut{
|
||||||
filter: grayscale(100%);
|
filter: grayscale(100%);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
Reference in New Issue
Block a user