import { NButton, NSelect } from 'naive-ui' import useCodeEditor from '../hooks/codeEditor' import { useRoute } from 'vue-router' const options = [ { label: 'static', value: 'static', }, { label: 'vanilla', value: 'vanilla', }, { label: 'vue3', value: 'vite-vue', }, { label: 'react', value: 'react', }, ] export default defineComponent({ setup() { const { template, saveCode } = useCodeEditor() const { query } = useRoute() // const type = ref('static') return () => (
运行 saveCode(query)}> 保存
) }, })