mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-16 05:09:17 +00:00
update async
This commit is contained in:
@@ -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) => {
|
||||
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");
|
||||
|
Reference in New Issue
Block a user