fix: vite process

This commit is contained in:
ckt1031
2023-07-09 17:01:14 +08:00
parent 4e6f9f67b3
commit ebd62c3bfc
3 changed files with 3 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ const OtherSetting = () => {
'https://api.github.com/repos/songquanpeng/one-api/releases/latest'
);
const { tag_name, body } = res.data;
if (tag_name === process.env.REACT_APP_VERSION) {
if (tag_name === import.meta.env.REACT_APP_VERSION) {
showSuccess(`已是最新版本:${tag_name}`);
} else {
setUpdateData({