版本不兼容时可以到浏览器下载安装包

This commit is contained in:
砂糖
2025-07-28 11:22:19 +08:00
parent 58cda5ccce
commit 91e17af463
10 changed files with 507 additions and 315 deletions

View File

@@ -0,0 +1,37 @@
<template>
<view>
<oa-file-upload @choose="onFileChoose" />
<view v-if="fileInfo">
已选择文件{{ fileInfo.name }}
</view>
<button @click="test">测试下载</button>
</view>
</template>
<script>
export default {
data() {
return {
fileInfo: null
}
},
methods: {
onFileChoose(file) {
this.fileInfo = file;
},
test() {
// 替换为你的下载地址
const downloadUrl = 'http://47.117.71.33:11295/fadapp-update/fad.wgt';
// #ifdef APP-PLUS
plus.runtime.openURL(downloadUrl);
// #endif
// #ifndef APP-PLUS
window.open(downloadUrl, '_blank');
// #endif
}
}
}
</script>
<style></style>