From 987c4c5249cad9925400be86aa64bf8dd953ed84 Mon Sep 17 00:00:00 2001 From: "X.Mo" Date: Thu, 21 Mar 2024 14:47:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=BC=96=E8=BE=91=E5=BC=B9=E4=B8=8D=E5=87=BA?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ma-codeEditor/index.vue | 2 +- src/views/login.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ma-codeEditor/index.vue b/src/components/ma-codeEditor/index.vue index 42d98f41..aa500e70 100644 --- a/src/components/ma-codeEditor/index.vue +++ b/src/components/ma-codeEditor/index.vue @@ -83,7 +83,7 @@ let instance const initEditorValue = () => { if (props.valueType === 'value' && typeof props.modelValue === 'string') { instance.setValue(props.modelValue) - } else if (props.valueType === 'value' && props.modelValue._onWillDispose === undefined) { + } else if (props.valueType === 'value' && props.modelValue?._onWillDispose === undefined) { instance.setValue(formatJson(props.modelValue)) } else if (props.modelValue){ instance.setModel(toRaw(props.modelValue)) diff --git a/src/views/login.vue b/src/views/login.vue index 109862b6..66875d85 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -51,7 +51,7 @@ const handleSubmit = async ({ values, errors }) => { loading.value = false return } - useTagStore().tags = []; + useTagStore().clearTags() router.push(redirect) } loading.value = false