You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
547 B
23 lines
547 B
|
|
export var config={
|
|
//服务器地址
|
|
server:"http://192.168.50.73",
|
|
// 接口
|
|
interface:{
|
|
//图片解析
|
|
image_parse:"/api/BaiduImage.php",
|
|
// 文本查询
|
|
text_query:"/api/QueryText.php"
|
|
}
|
|
|
|
}
|
|
|
|
export var getInterface=function(url){
|
|
if(process.env.NODE_ENV === 'development'){
|
|
console.log("开发环境,通过XDEBUG调试接口")
|
|
return config.server+url+"?XDEBUG_SESSION_START=PHPSTORM"
|
|
}else{
|
|
console.log('生产环境')
|
|
return config.server+url
|
|
}
|
|
} |