diff --git a/test-track/frontend/src/business/issue/IssueSyncSelect.vue b/test-track/frontend/src/business/issue/IssueSyncSelect.vue index 6767e68d36..7a649c5963 100644 --- a/test-track/frontend/src/business/issue/IssueSyncSelect.vue +++ b/test-track/frontend/src/business/issue/IssueSyncSelect.vue @@ -25,6 +25,7 @@ @@ -65,6 +66,10 @@ export default { methods: { open() { this.visible = true; + let syncTime = localStorage.getItem("ISSUE_SYNC_TIME"); + if (syncTime) { + this.form.createTime = syncTime; + } }, save() { this.$refs['form'].validate((valid) => { @@ -78,7 +83,11 @@ export default { }, cancel() { this.visible = false; - this.$refs.form.resetFields(); + }, + changeSyncTime() { + if (this.form.createTime) { + localStorage.setItem("ISSUE_SYNC_TIME", this.form.createTime); + } } } };