Преглед изворни кода

fix : 模板列表传递id过去

梦辉 пре 1 година
родитељ
комит
2b286e4375
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      src/subPages/pages/commitment/home/components/templateList/index.vue

+ 1 - 3
src/subPages/pages/commitment/home/components/templateList/index.vue

@@ -25,9 +25,7 @@ export default {
         const res = await getTemplateList({
           current: 1,
           size: 8,
-          departmentId: uni.getStorageSync("userInfo").deptIdList
-              ? uni.getStorageSync("userInfo").deptIdList[uni.getStorageSync("userInfo").deptIdList.length - 1]
-              : undefined
+          departmentId: uni.getStorageSync("userInfo").deptId
         });
         this.templateList = res.data.records || [];
         for (const [index, item] of this.templateList.entries()) {