feat 增加下载按钮

This commit is contained in:
Ironsp
2026-09-03 14:49:30 +08:00
parent 79ccddf705
commit d0d19792cf

View File

@@ -24,6 +24,10 @@ const reportData = ref<any>({
exceptionCount: '2', exceptionCount: '2',
}) })
function handleDownload() {
console.log('点击下载')
}
onLoad((options) => { onLoad((options) => {
if (options?.key) { if (options?.key) {
const data = storage.get(options.key) const data = storage.get(options.key)
@@ -37,7 +41,9 @@ onLoad((options) => {
<template> <template>
<view class="page"> <view class="page">
<back-nav title="报告详情" /> <back-nav title="报告详情">
<wd-button size="large" variant="soft" icon="download" @tap="handleDownload" />
</back-nav>
<view class="content"> <view class="content">
<report-device-header <report-device-header