update maixvision home page

This commit is contained in:
Neucrack
2024-05-14 10:34:35 +08:00
parent 73d623eae5
commit fb84c929d1
2 changed files with 9 additions and 2 deletions

View File

@@ -98,7 +98,10 @@ title: MaixVision Workstation Official Website
<script>
async function getLatestVersion(filename) {
const response = await fetch('https://cdn.sipeed.com/maixvision/' + filename + '.json');
const timestamp = new Date().getTime();
const url = `https://cdn.sipeed.com/maixvision/${filename}.json?t=${timestamp}`;
const response = await fetch(url);
const data = await response.json();
if(data.error) {
showMsgInfo("load data failed: " + data.error);
@@ -107,6 +110,7 @@ async function getLatestVersion(filename) {
return data;
}
var win_download = document.getElementById('win_download');
var linux_download = document.getElementById('linux_download');
var macos_download = document.getElementById('macos_download');

View File

@@ -98,7 +98,10 @@ title: MaixVision 工作站官网
<script>
async function getLatestVersion(filename) {
const response = await fetch('https://cdn.sipeed.com/maixvision/' + filename + '.json');
const timestamp = new Date().getTime();
const url = `https://cdn.sipeed.com/maixvision/${filename}.json?t=${timestamp}`;
const response = await fetch(url);
const data = await response.json();
if(data.error) {
showMsgInfo("load data failed: " + data.error);