From 601c5d051a6a10de78f64ba74f26ccf12749ae2e Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 23 Nov 2022 14:00:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86=E5=BC=B9=E7=AA=97=E8=AE=B0?= =?UTF-8?q?=E4=BD=8F=E4=B8=8A=E6=AC=A1=E5=90=8C=E6=AD=A5=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/business/issue/IssueSyncSelect.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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); + } } } };