fix: vite process
This commit is contained in:
parent
4e6f9f67b3
commit
ebd62c3bfc
@ -41,7 +41,7 @@ const Footer = () => {
|
||||
href='https://github.com/songquanpeng/one-api'
|
||||
target='_blank'
|
||||
>
|
||||
{systemName} {process.env.REACT_APP_VERSION}{' '}
|
||||
{systemName} {import.meta.env.REACT_APP_VERSION}{' '}
|
||||
</a>
|
||||
由{' '}
|
||||
<a href='https://github.com/songquanpeng' target='_blank'>
|
||||
|
@ -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({
|
||||
|
@ -2,7 +2,7 @@ import { showError } from './utils';
|
||||
import axios from 'axios';
|
||||
|
||||
export const API = axios.create({
|
||||
baseURL: process.env.REACT_APP_SERVER ? process.env.REACT_APP_SERVER : '',
|
||||
baseURL: 'http://localhost:3000',
|
||||
});
|
||||
|
||||
API.interceptors.response.use(
|
||||
|
Loading…
Reference in New Issue
Block a user