diff --git a/packageA/pages/selectDate/selectDate.vue b/packageA/pages/selectDate/selectDate.vue
index 5812aa9..4770c4f 100644
--- a/packageA/pages/selectDate/selectDate.vue
+++ b/packageA/pages/selectDate/selectDate.vue
@@ -59,10 +59,10 @@ const pages = reactive({
year: 0,
month: 0,
});
-
const hasZphDateArray = ref([]);
onLoad((options) => {
+ updateDateArray();
if (options.date) {
current.value = {
date: options?.date || null,
diff --git a/pages/index/components/index-refactor.vue b/pages/index/components/index-refactor.vue
index e0a866d..f710571 100644
--- a/pages/index/components/index-refactor.vue
+++ b/pages/index/components/index-refactor.vue
@@ -596,7 +596,16 @@ function getJobRecommend(type = 'add') {
if (question) {
comd.jobCategory = question;
- data.unshift(comd);
+ // 生成随机插入位置,排除前两个和最后两个位置
+ let insertIndex;
+ if (data.length <= 4) {
+ // 如果数据长度小于等于4,直接插入到中间位置
+ insertIndex = Math.floor(data.length / 2);
+ } else {
+ // 生成2到data.length-2之间的随机位置
+ insertIndex = Math.floor(Math.random() * (data.length - 4)) + 2;
+ }
+ data.splice(insertIndex, 0, comd);
}
}
const reslist = dataToImg(data);
diff --git a/pages/msglog/read.vue b/pages/msglog/read.vue
index b187216..cd8a23b 100644
--- a/pages/msglog/read.vue
+++ b/pages/msglog/read.vue
@@ -1,6 +1,6 @@
-
+
+
diff --git a/pages/msglog/unread.vue b/pages/msglog/unread.vue
index b675823..806770d 100644
--- a/pages/msglog/unread.vue
+++ b/pages/msglog/unread.vue
@@ -1,6 +1,6 @@
-
+
+