lion 8 months ago
parent e227cf02ad
commit 5e81884a56

@ -1,14 +1,16 @@
const mode = 'devLocal'; //devLocal本地测试、devOnline线上测试、production生产环境 const mode = 'devLocal'; //devLocal本地测试、devOnline线上测试、production生产环境
let ROOTPATH; //域名 let ROOTPATH = "https://yikangyang.ali251.langye.net"; //域名
// let ROOTPATH = "https://yikangyang-test.ali251.langye.net"; //域名
switch (mode) { switch (mode) {
case 'devLocal': case 'devLocal':
ROOTPATH = 'https://yikangyang.ali251.langye.net' ROOTPATH = ROOTPATH
break; break;
case 'devOnline': case 'devOnline':
ROOTPATH = 'https://yikangyang.ali251.langye.net' ROOTPATH = ROOTPATH
break; break;
case 'production': case 'production':
ROOTPATH = 'https://yikangyang.ali251.langye.net' ROOTPATH = ROOTPATH
break; break;
default: default:
throw new Error('未配置环境'); throw new Error('未配置环境');

@ -133,7 +133,8 @@
methods: { methods: {
async getDetail(id) { async getDetail(id) {
await this.$u.api.accompanyProductDetail({ await this.$u.api.accompanyProductDetail({
id: id id: id,
site_id:this.choose_site
}).then(res=>{ }).then(res=>{
console.log("res", res) console.log("res", res)
this.info = res this.info = res

Loading…
Cancel
Save