下载app接口替换

This commit is contained in:
2025-12-30 10:36:58 +08:00
parent 0732fdcb8e
commit 91b3c069ad
3 changed files with 19 additions and 2 deletions

View File

@@ -11,14 +11,21 @@
</template>
<script>
import { getNewVersion } from "@/api/order"
export default {
name: "goToApp",
methods: {
goAppHandler() {
window.location.href = "rvdriver://page/pagesLogin/phoneLogin?source=h5Link";
},
downLoadHandler() {
window.location.href = 'https://cos.sinoassist.com/2025/12/29/395f660b041e47198b6e681ede9a9266.apk'
async downLoadHandler() {
getNewVersion({
appType: 5
}).then((res) => {
window.location.href = res?.result?.path
}).catch(() => {
this.$message.error('请求版本失败,请重试');
});
}
}
}