diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index 67177ec..2efd877 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'