增加一个配置文件

This commit is contained in:
daihh
2022-06-13 22:54:32 +08:00
parent 5e5b5f4dc2
commit 22f86baa3b
2 changed files with 56 additions and 2 deletions

View File

@@ -13,12 +13,24 @@ if(process.env.NODE_ENV === 'development'){
oldApiBaseUrl = '/uboeApi'; oldApiBaseUrl = '/uboeApi';
fileUrl = 'http://localhost:9090/cdn/upload'; fileUrl = 'http://localhost:9090/cdn/upload';
loginPath='/pages/login/login'; loginPath='/pages/login/login';
}else{ }else if(process.env.NODE_ENV === 'preview'){
// 生产环境 // 生产环境
apiBaseUrl = '/systemapi'; apiBaseUrl = '/systemapi';
oldApiBaseUrl = '/uboeApi'; oldApiBaseUrl = '/uboeApi';
fileUrl = 'https://u-pre.boe.com/file/upload'; fileUrl = 'https://u-pre.boe.com/file/upload';
loginPath='https://u-pre.boe.com/m'; loginPath='https://u-pre.boe.com/m/preview';
}else if(process.env.NODE_ENV === 'testing'){
// 生产环境
apiBaseUrl = '/systemapi';
oldApiBaseUrl = '/uboeApi';
fileUrl = 'https://u-pre.boe.com/file/upload';
loginPath='https://u-pre.boe.com/m/testing';
}else{
// 生产环境
apiBaseUrl = '/systemapi';
oldApiBaseUrl = '/uboeApi';
fileUrl = 'https://u.boe.com/file/upload';
loginPath='https://u.boe.com/m/production';
} }
export default { export default {

42
package.json Normal file
View File

@@ -0,0 +1,42 @@
{
"name": "mobile",
"version": "1.0.0",
"description": "移动端代码",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/mobile.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"uni-app": {
"scripts": {
"h5:testing": {
"BROWSER": "Chrome",
"title": "build:testing",
"env": {
"UNI_PLATFORM": "h5",
"ENV_TYPE": "testing"
},
"define": {
}
},
"h5:preview": {
"BROWSER": "Chrome",
"title": "build:preview",
"env": {
"UNI_PLATFORM": "h5",
"ENV_TYPE": "preview"
},
"define": {
}
}
}
}
}