🐞 fix: 优化路由跳转

This commit is contained in:
wangsongsole 2023-04-23 15:42:00 +08:00
parent a9d8305424
commit 33300a99a8
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ if (process.env.NODE_ENV == 'production') {
/* 开发环境 */ /* 开发环境 */
if (process.env.NODE_ENV == 'development') { if (process.env.NODE_ENV == 'development') {
window.unifiedUrl = 'http://192.168.7.200:8888/#/login'; window.unifiedUrl = 'http://192.168.7.200:8888/#/';
} }
const ApiUrl = const ApiUrl =

View File

@ -37,7 +37,7 @@ export default class App extends Component {
/* 跳转统一登录平台 */ /* 跳转统一登录平台 */
toUnifiedLogin() { toUnifiedLogin() {
setTimeout(() => { setTimeout(() => {
window.location.href = `${window.unifiedUrl}?url=${encodeURIComponent( window.location.href = `${window.unifiedUrl}#/?url=${encodeURIComponent(
window.location.href window.location.href
)}`; )}`;
}, 1500); }, 1500);