Browse Source

🎨 修改细节问题

快乐的梦鱼 2 months ago
parent
commit
76d60e47da
2 changed files with 3 additions and 3 deletions
  1. 3 2
      src/components/content/CommonListBlock.vue
  2. 0 1
      src/views/AboutView.vue

+ 3 - 2
src/components/content/CommonListBlock.vue

@@ -283,8 +283,9 @@ watch(selectedTag, () => {
 
 function loadDropValues() {
   dropDownValues.value = [];
-  for (const element of props.dropDownNames)
-    dropDownValues.value.push(element.defaultSelectedValue);
+  if (props.dropDownNames)
+    for (const element of props.dropDownNames)
+      dropDownValues.value.push(element.defaultSelectedValue);
   newsLoader.loadData(undefined, true);
 }
 

+ 0 - 1
src/views/AboutView.vue

@@ -81,7 +81,6 @@
             :key="index"
             :title="item.title"
             :image="item.image"
-            :date="item.date"
             @click="navTo('/news/detail', { id: item.id })"
           />
         </SimplePageContentLoader>