fix: move back to react-scripts

This commit is contained in:
ckt1031
2023-07-09 21:18:22 +08:00
parent 28d58849a0
commit 2ae5741214
7 changed files with 1641 additions and 800 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 === import.meta.env.REACT_APP_VERSION) {
if (tag_name === process.env.REACT_APP_VERSION) {
showSuccess(`已是最新版本:${tag_name}`);
} else {
setUpdateData({