听海 1841fc9fed feat(plugin-layout): custom插槽支持 menus 参数 & 重构403、404逻辑 (#181)
* feat(plugin-layout): custom插槽添加menus参数

* refactor: 403/404默认显示layout,在pages目录下创建404.vue/403.vue可覆盖默认

* refactor(plugin-layout): 优化index.jsx

n

* fix: 403/404添加title
2023-04-06 10:07:29 +08:00

37 lines
738 B
Vue

<template>
<monaco-editor ref="editorRef" v-model="json" :language="language" height="200px" check />
{{ json }}
</template>
<config>
{
"name": "editor",
"title": "$editor",
"keep-alive": true
}
</config>
<script>
import { onMounted, ref } from 'vue';
import { MonacoEditor } from '@fesjs/fes';
export default {
components: {
MonacoEditor,
},
setup() {
const editorRef = ref();
const json = ref('');
const language = ref('json');
onMounted(() => {
setTimeout(() => {
language.value = 'html';
}, 3000);
});
return {
editorRef,
json,
language,
};
},
};
</script>