|
@@ -12,13 +12,12 @@ const router = useRouter();
|
|
|
const loading = ref(false);
|
|
const loading = ref(false);
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
const uuid = router.currentRoute.value.query.uuid;
|
|
const uuid = router.currentRoute.value.query.uuid;
|
|
|
- console.log(router.currentRoute.value.query,'2222222');
|
|
|
|
|
UserStorageResource.uniqueByKey(uuid).then(
|
|
UserStorageResource.uniqueByKey(uuid).then(
|
|
|
success => {
|
|
success => {
|
|
|
if (success.errorCode == 0) {
|
|
if (success.errorCode == 0) {
|
|
|
if (success.data) {
|
|
if (success.data) {
|
|
|
const allData = JSON.parse(success.data);
|
|
const allData = JSON.parse(success.data);
|
|
|
- // downloadRecord(allData[0].id);
|
|
|
|
|
|
|
+ downloadRecord(allData[0].id);
|
|
|
} else {
|
|
} else {
|
|
|
message.warning('请选择一条归档记录');
|
|
message.warning('请选择一条归档记录');
|
|
|
}
|
|
}
|
|
@@ -29,7 +28,7 @@ onMounted(() => {
|
|
|
error => {
|
|
error => {
|
|
|
Common.processException(error);
|
|
Common.processException(error);
|
|
|
},
|
|
},
|
|
|
- // router.back(),
|
|
|
|
|
|
|
+ router.back(),
|
|
|
);
|
|
);
|
|
|
});
|
|
});
|
|
|
const downloadRecord = recordId => {
|
|
const downloadRecord = recordId => {
|