first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
var config = {
devBaseUrl: "http://127.0.0.1:3000/api", // 开发阶段的请求基本地址
testBaseUrl: "http://127.0.0.1:3000/api/test", // 测试阶段的请求基本地址
prodBaseUrl: "http://127.0.0.1:3000/api/prod", // 上线阶段的请求基本地址
stage: "dev", // dev开发 test测试 prod上线
apiList: {
iclass: '/index/class',
hot: '/index/hot'
},
// 检查使用什么阶段的接口地址
checkBaseUrl: function () {
switch (this.stage) {
case "dev":
return this.devBaseUrl
break;
case "test":
return this.testBaseUrl
break;
case "prod":
return this.prodBaseUrl
break;
default:
break;
}
}
}