登录注册/数据分析
This commit is contained in:
@@ -248,9 +248,18 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad(options: any) {
|
||||
const reportId = options.reportId as string
|
||||
// 兼容两种参数名:reportId 和 id
|
||||
const reportId = (options.reportId || options.id) as string
|
||||
if (reportId) {
|
||||
this.loadReportDetail(reportId)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '缺少报表ID',
|
||||
icon: 'none'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 1500)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user