Closed fuqiang03 closed 3 months ago
function fetchLatestVersion() { return new Promise((resolve, reject) => { var xhr = new XMLHttpRequest(); xhr.open('GET', 'https://raw.githubusercontent.com/hudra0/qosmate/main/etc/qosmate.sh', true); xhr.onload = function() { if (xhr.status === 200) { var match = xhr.responseText.match(/^VERSION="(.+)"/m); latestVersion = match ? match[1] : 'Unknown'; resolve(latestVersion); } else { reject('Failed to fetch latest version'); } }; xhr.onerror = function() { reject('Network error'); }; xhr.send(); }); } 连接错误信息,影响页面显示
Did you build qosmate from source?
@hudra0 yes I need time to learn how to use it Additional dependencies may need to be installed Can you provide a "pot" file
You might be missing the entire backend (init script, main script, etc.). Please avoid using the Makefile for now—it hasn’t been tested and is likely incomplete. I've just updated the README, so please follow those instructions to install QoSMate and luci-app-qosmate.
@hudra0 The information returned by fetchLatestVersion will affect the display of the page, even for the latest files. If the network is restricted, the returned information will control the entire page I can solve any other problems on my own
I made some changes to the UI which should help if there is no Internet connection. Please re-download everything and try again.
@hudra0 没有问题了
@hudra0 Too many connections will result in an error
Missing file path 'qosmate'