From af8d5ff0399ffdce8d4bdce93524cadb0fb304d1 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 10 May 2021 11:44:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E9=AA=8C=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TestPanel.vue | 6 ++++-- src/utils/api.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index bfa6a42..ab7511f 100644 --- a/src/components/TestPanel.vue +++ b/src/components/TestPanel.vue @@ -111,7 +111,7 @@ - +
@@ -204,7 +204,8 @@ export default { isSelected: false, userId: '', workbenchCus: this.workbench, - isRecovery: false + isRecovery: false, + isstartexperimentSuggests: 1 }; }, watch: { @@ -486,6 +487,7 @@ export default { let arr1 = this.tableData; let result1 = arr1.map(e => e.judgmentPointsId); this.judgmentPointsIds = this.judgmentPointsIds.concat(result1); + this.isstartexperimentSuggests = !res.message.project[0].isstartexperimentSuggests //0显示,1不显示 if (this.projectPermissions == "1") { this.text = "剩余"; diff --git a/src/utils/api.js b/src/utils/api.js index 28c7e2e..6818d93 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -1,7 +1,7 @@ // let host = 'http://192.168.31.125:8081/python'//林 // let host = 'http://192.168.31.152:8081/python'//榕 let host = '' -if(location.host.includes('liuwanr.cn')){ +if(location.host.includes('liuwanr.cn') || process.env.NODE_ENV === 'development'){ host = 'http://www.liuwanr.cn/python' }else{ host = 'http://www.occupationlab.com/python'