forked from Gitlink/forgeplus-react
update
This commit is contained in:
parent
eb6f54496f
commit
d95993dfbb
|
@ -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',
|
||||
});
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue