修改开发环境API地址并优化租户管理中营业执照上传功能
This commit is contained in:
@@ -22,8 +22,9 @@ const service: AxiosInstance = axios.create({
|
||||
const newService: AxiosInstance = axios.create({
|
||||
// baseURL: 'http://192.168.3.95:8000/',
|
||||
// baseURL: 'http://192.168.3.49:8000/',
|
||||
baseURL: 'http://localhost:8000/',
|
||||
// baseURL: 'http://localhost:8000/',
|
||||
// baseURL: 'http://192.168.3.200:8000/',
|
||||
baseURL: 'http://192.168.3.11:8000/',
|
||||
timeout: 50000,
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
paramsSerializer: {
|
||||
@@ -64,9 +65,9 @@ const performLogout = () => {
|
||||
Session.clear();
|
||||
localStorage.clear();
|
||||
isHandlingTokenExpired = false;
|
||||
// 跳转到登录页,确保完全刷新
|
||||
// 跳转到后台管理登录页,确保完全刷新
|
||||
setTimeout(() => {
|
||||
window.location.href = '/';
|
||||
window.location.href = '/login';
|
||||
}, 500);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user