feat: sas分支代理地址调为本地

Former-commit-id: 4352f15f4d6ea3a12b14de3ab129691e0bd4505b
This commit is contained in:
horizons committed 2022-09-26 08:15:03 +08:00
1 parent 81d7880ebc
commit 9d1c08e043
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
const SESSION_ID_KEY = 'SCG_SESSION_ID'; const SESSION_ID_KEY = 'GATEWAY_SESSION_ID';
export const hasLogin = () => { export const hasLogin = () => {
const sessionId = Cookies.get(SESSION_ID_KEY); const sessionId = Cookies.get(SESSION_ID_KEY);
+1 -1
View File
@@ -33,7 +33,7 @@ function youlaiHandleClick(thirdpart: string) {
// const appid = 'xxxxx' // const appid = 'xxxxx'
// const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/auth-redirect') // const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/auth-redirect')
const url = const url =
'http://localhost:9999/oauth2/authorization/gateway-client-authorization-code?redirect_uri=http://localhost:3000'; 'http://127.0.0.1:9999/oauth2/authorization/gateway-client-authorization-code?redirect_uri=http://127.0.0.1:3000';
// window.open(url, thirdpart); // window.open(url, thirdpart);
window.location.href = url; window.location.href = url;
} }
+1 -1
View File
@@ -25,7 +25,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
open: true, // 运行自动打开浏览器 open: true, // 运行自动打开浏览器
proxy: { proxy: {
[env.VITE_APP_BASE_API]: { [env.VITE_APP_BASE_API]: {
target: 'https://api.youlai.tech', target: 'http://127.0.0.1:9999',
changeOrigin: true, changeOrigin: true,
rewrite: path => rewrite: path =>
path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '') path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')