This commit is contained in:
caishi 2022-04-03 15:15:35 +08:00
parent eb6f54496f
commit d95993dfbb
2 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ import ENV from '@/utils/env';
//获取所有频道
export async function getGlobalSetting() {
console.log("env:",ENV.FORGE_SERVER);
return Fetch(`${ENV.FORGE_SERVER}/api/setting.json`, {
method: 'Get',
});

View File

@ -87,7 +87,7 @@ export const GlobalConfig: ConfigProps = {
IMG_SERVER: 'https://ali-cdn.educoder.net',
FORGE: "https://code.educoder.net/",
QQLoginCB: encodeURIComponent("https://www.educoder.net"),
FORGE_SERVER:"https://testforgeplus.trustie.net"
FORGE_SERVER:"https://gitlink.org.cn"
},
// test
newTest: {
@ -127,13 +127,13 @@ export const GlobalConfig: ConfigProps = {
FORGE_SERVER:"https://testforgeplus.trustie.net"
},
build: {
API_SERVER: '',
API_SERVER: 'https://data.educoder.net/',
IMG_SERVER: 'https://ali-cdn.educoder.net',
REPORT_SERVER: "http://192.168.1.57:3001",
FORGE: "https://forge.educoder.net/",
SSH_SERVER: "wss://webssh.educoder.net",
QQLoginCB: encodeURIComponent("https://www.educoder.net"),
FORGE_SERVER:"https://gitlink.org.cn"
FORGE_SERVER:""
},
};
export default GlobalConfig[window.ENV || "dev"]