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