🐞 fix: 优化路由跳转
This commit is contained in:
parent
a9d8305424
commit
33300a99a8
|
@ -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 =
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue