mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 17:05:10 +00:00
update async
This commit is contained in:
parent
26bb30353b
commit
97da665904
@ -29,10 +29,9 @@ const demandLogStore = useDemandLogStore();
|
|||||||
const monacoInstance = ref();
|
const monacoInstance = ref();
|
||||||
const logContent = ref<Nullable<HTMLDivElement>>(null);
|
const logContent = ref<Nullable<HTMLDivElement>>(null);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(async () => {
|
||||||
import("monaco-editor/esm/vs/editor/editor.api").then((monaco) => {
|
const monaco = await import("monaco-editor/esm/vs/editor/editor.api");
|
||||||
monacoInstanceGen(monaco);
|
monacoInstanceGen(monaco);
|
||||||
});
|
|
||||||
});
|
});
|
||||||
function monacoInstanceGen(monaco: any) {
|
function monacoInstanceGen(monaco: any) {
|
||||||
const value = demandLogStore.logs.map((d: Log) => d.content).join("\n");
|
const value = demandLogStore.logs.map((d: Log) => d.content).join("\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user