修正ts类型

This commit is contained in:
Zy
2026-05-13 15:28:25 +08:00
parent 1b738c0f4d
commit a1750bc67b
114 changed files with 2346 additions and 613 deletions

View File

@@ -34,14 +34,15 @@ const service = axios.create({
clarifyTimeoutError: true
}
});
// 不需要小区 ID 的接口白名单(支持 * 通配符)
const whiteVillageId = [
'/village',
'/village/*',
'/waterDevice/generateBarCode', // 水表 条码
'/electricityDevice/generateBarCode', // 电表 条码
'/payRecordList/payRecordList/list'
'/payRecordList/payRecordList/list',
'/warehouse/*'
// 以后直接在这里加新地址,支持 /xxx/*、/xxx/xxx 写法
];
@@ -202,9 +203,6 @@ service.interceptors.response.use(
useUserStore().logout().then(() => {
router.replace({
path: '/login',
query: {
redirect: encodeURIComponent(router.currentRoute.value.fullPath || '/')
}
})
});
}).catch(() => {