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,32 @@
var config = {
devBaseUrl: 'http://127.0.0.1:3000/api/json', // 开发阶段地址
testBaseUrl: 'http://127.0.0.1:3000/api/json/test', // 测试阶段地址
prodBaseUrl: 'http://127.0.0.1:3000/api/json/prod', // 正式阶段地址
stage: 'dev', // dev test prod
checkBaseUrl: function () {
switch (this.stage) {
case "dev":
return this.devBaseUrl;
break;
case "test":
return this.testBaseUrl;
break;
case "prod":
return this.prodBaseUrl;
break;
}
},
// 项目中的所有接口短地址
apiList: {
mechanismList: "/mechanismList",
mechanism: "/mechanism",
classApi: "/class",
index: '/index',
classList: '/classList',
info: '/info',
medolHome: '/medolHome',
allModel: '/allModel',
search : '/search',
}
}

View File

@@ -0,0 +1,3 @@
存放全局配置的地方
一般存放 接口配置地址等