fix: update MdEditor component to prevent potential XSS attacks (#11548)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 13m5s

This commit is contained in:
CityFun 2026-01-04 17:31:43 +08:00 committed by GitHub
parent 8def011e63
commit 20b89a8fdd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,6 +8,7 @@ import 'md-editor-v3/lib/style.css';
import DOMPurify from 'dompurify';
import { GlobalStore } from '@/store';
import { storeToRefs } from 'pinia';
import { computed } from 'vue';
const globalStore = GlobalStore();
const { isDarkTheme } = storeToRefs(globalStore);