瀏覽代碼

🐛修改后端参数

shaogen1995 2 年之前
父節點
當前提交
dbef19e37e
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      code/src/views/home/aside.vue
  2. 2 2
      code/src/views/home/maside.vue

+ 2 - 2
code/src/views/home/aside.vue

@@ -125,11 +125,11 @@ const getList = (cityId = "") => {
     (data) => {
       data.data.records.forEach((item) => {
         let ele = list.value.findIndex(
-          (sub) => sub.type == item.initial.toUpperCase()
+          (sub) => sub.type == item.myInitial.toUpperCase()
         );
         if (ele < 0) {
           list.value.push({
-            type: item.initial.toUpperCase(),
+            type: item.myInitial.toUpperCase(),
             arr: [{ ...item }],
           });
         } else {

+ 2 - 2
code/src/views/home/maside.vue

@@ -142,11 +142,11 @@ const getList = (cityId = "") => {
 
       data.data.records.forEach((item) => {
         let ele = list.value.findIndex(
-          (sub) => sub.type == item.initial.toUpperCase()
+          (sub) => sub.type == item.myInitial.toUpperCase()
         );
         if (ele < 0) {
           list.value.push({
-            type: item.initial.toUpperCase(),
+            type: item.myInitial.toUpperCase(),
             arr: [{ ...item }],
           });
         } else {