fix: update issue

This commit is contained in:
ckt1031 2023-08-09 23:14:27 +08:00
parent 47cf052d22
commit 067f994b5c

View File

@ -84,12 +84,12 @@ const OtherSetting = () => {
const openGitHubRelease = () => {
window.location =
'https://github.com/songquanpeng/one-api/releases/latest';
'https://github.com/ckt1031/one-api/releases/latest';
};
const checkUpdate = async () => {
const res = await API.get(
'https://api.github.com/repos/songquanpeng/one-api/releases/latest'
'https://api.github.com/repos/ckt1031/one-api/releases/latest'
);
const { tag_name, body } = res.data;
if (tag_name === process.env.REACT_APP_VERSION) {