Commit 8e0285e9 authored by your yuchenglong's avatar your yuchenglong

update:环境判断

parent 003c44be
...@@ -540,7 +540,6 @@ export default { ...@@ -540,7 +540,6 @@ export default {
} }
let res = await this.printOrderMet(false); let res = await this.printOrderMet(false);
console.log(res.code);
if (res.code === 0) { if (res.code === 0) {
this.$message({ this.$message({
type: "success", type: "success",
......
...@@ -102,5 +102,11 @@ export async function orderRefundReject(params) { ...@@ -102,5 +102,11 @@ export async function orderRefundReject(params) {
// 导出订单 // 导出订单
export function getOrderExportURL(eventId, type) { export function getOrderExportURL(eventId, type) {
return `http://bp-dev.ini.yidian-inc.com/order/background/order_export?marketing_id=${eventId}&type=${type}`; var ENV;
if(process.env.NODE_ENV == "development"){
ENV = "http://bp-dev.ini.yidian-inc.com/"
}else{
ENV = "http://bp-test.ini.yidian-inc.com/"
}
return `${ENV}order/background/order_export?marketing_id=${eventId}&type=${type}`;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment