fix bug
This commit is contained in:
@@ -5,12 +5,22 @@ import { useSettingsStore } from '../stores/settingsStore';
|
||||
import { Codemirror } from 'vue-codemirror';
|
||||
import { json } from '@codemirror/lang-json';
|
||||
import { oneDark } from '@codemirror/theme-one-dark';
|
||||
import { EditorView } from '@codemirror/view';
|
||||
import { EditorView } from '@codemirror/view'; // Import EditorView
|
||||
|
||||
const store = useRequestStore();
|
||||
const settings = useSettingsStore();
|
||||
|
||||
const extensions = [json(), oneDark, EditorView.editable.of(false)];
|
||||
const transparentTheme = EditorView.theme({
|
||||
"&": {
|
||||
backgroundColor: "transparent !important",
|
||||
height: "100%"
|
||||
},
|
||||
".cm-gutters": {
|
||||
backgroundColor: "transparent !important"
|
||||
}
|
||||
});
|
||||
|
||||
const extensions = [json(), oneDark, transparentTheme, EditorView.editable.of(false)];
|
||||
|
||||
const formattedBody = computed(() => {
|
||||
if (!store.activeRequest.response) return '';
|
||||
|
||||
Reference in New Issue
Block a user