🐛 修复 accessLog、errorLog 在 IDEA 报错的问题

This commit is contained in:
YunaiV 2023-12-03 18:33:33 +08:00
parent 5eb30c7e85
commit 7748704639
2 changed files with 4 additions and 4 deletions

View File

@ -32,8 +32,8 @@
<el-descriptions-item label="请求耗时">{{ detailData.duration }} ms</el-descriptions-item> <el-descriptions-item label="请求耗时">{{ detailData.duration }} ms</el-descriptions-item>
<el-descriptions-item label="操作结果"> <el-descriptions-item label="操作结果">
<div v-if="detailData.resultCode === 0">正常</div> <div v-if="detailData.resultCode === 0">正常</div>
<div v-else-if="detailData.resultCode > 0" <div v-else-if="detailData.resultCode > 0">
>失败 | {{ detailData.resultCode }} | {{ detailData.resultMsg }} 失败 | {{ detailData.resultCode }} | {{ detailData.resultMsg }}
</div> </div>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
@ -49,7 +49,7 @@ defineOptions({ name: 'ApiAccessLogDetail' })
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
const detailLoading = ref(false) // const detailLoading = ref(false) //
const detailData = ref() // const detailData = ref({} as ApiAccessLog.ApiAccessLogVO) //
/** 打开弹窗 */ /** 打开弹窗 */
const open = async (data: ApiAccessLog.ApiAccessLogVO) => { const open = async (data: ApiAccessLog.ApiAccessLogVO) => {

View File

@ -64,7 +64,7 @@ defineOptions({ name: 'ApiErrorLogDetail' })
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
const detailLoading = ref(false) // const detailLoading = ref(false) //
const detailData = ref() // const detailData = ref({} as ApiErrorLog.ApiErrorLogVO) //
/** 打开弹窗 */ /** 打开弹窗 */
const open = async (data: ApiErrorLog.ApiErrorLogVO) => { const open = async (data: ApiErrorLog.ApiErrorLogVO) => {