Преглед на файлове

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