fix: 导出场景文件名为null (#4356)

Co-authored-by: chenjianxing <jianxing.chen@fit2cloud.com>
This commit is contained in:
metersphere-bot 2021-07-02 17:32:18 +08:00 committed by GitHub
parent 7a88f970b3
commit 0ae630c5f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -434,10 +434,12 @@ export default {
principal: [], principal: [],
environmentId: [], environmentId: [],
projectEnv: [], projectEnv: [],
projectId: ''
}, },
}; };
}, },
created() { created() {
this.projectId = getCurrentProjectID();
if(!this.projectName || this.projectName === ""){ if(!this.projectName || this.projectName === ""){
this.getProjectName(); this.getProjectName();
} }
@ -481,9 +483,6 @@ export default {
isNotRunning() { isNotRunning() {
return "Running" !== this.report.status; return "Running" !== this.report.status;
}, },
projectId() {
return getCurrentProjectID();
},
}, },
methods: { methods: {
getProjectName (){ getProjectName (){