mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
增加一个配置文件
This commit is contained in:
@@ -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
42
package.json
Normal 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": {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user