Ver Fonte

fix : 模板列表传递id过去

梦辉 há 1 ano atrás
pai
commit
2b286e4375

+ 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()) {