Browse Source

修改登录路径

linyk 2 years ago
parent
commit
7dafa710e7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/config/index.js

+ 2 - 2
src/config/index.js

@@ -135,8 +135,8 @@ export const setConfig = (conf) => {
 }
 
 //本地开发使用
-export const login_url = '#/login'
-export const register_url = ''
+export const login_url = (process.env.ENV_CONFIG === 'dev' || process.env.ENV_CONFIG === 'test') ? '#/login' : 'http://user.cofortest.com:8081/page/login?redirect=http%3a%2f%2fwww.cofortest.com%2f%23%2fhome'
+export const register_url = (process.env.ENV_CONFIG === 'dev' || process.env.ENV_CONFIG === 'test') ? '' : 'http://user.cofortest.com:8081/page/register'
 
 // 开发使用
 // export const login_url = 'http://crowd.dev.mooctest.net:8281/page/login?redirect=http%3a%2f%2fdev.mooctest.net%3A5757%2f%23%2fhome'