提交 aff6934f 编写于 作者: D DebugIsFalse

Merge branch 'main' of gitcode.com:git_bot/ai-fe

<template> <template>
<UCard :ui="{ body: { padding: 'p-0 sm:p-0' }, base: 'overflow-hidden mt-5 mb-5' }"> <UCard :ui="cardUI">
<pre class="flex justify-between items-center m-0 rounded-none dark"> <pre class="flex justify-between items-center m-0 p-1 pl-4 pr-1 rounded-none dark">
<div>{{ language }}</div> <div>{{ language }}</div>
<UButton <UButton
leading-icon="i-heroicons-document-duplicate-20-solid" leading-icon="i-heroicons-document-duplicate-20-solid"
...@@ -44,6 +44,13 @@ const props = defineProps({ ...@@ -44,6 +44,13 @@ const props = defineProps({
default: null default: null
} }
}) })
const cardUI = {
body: {
padding: 'p-0 sm:p-0'
},
base: 'overflow-hidden mt-5 mb-5',
ring: 'ring-0 dark:ring-1'
}
const handleCopy = () => { const handleCopy = () => {
useCopyToClipboard().copy(props.code) useCopyToClipboard().copy(props.code)
toast.add({ toast.add({
......
const BASE_URL = 'https://gpu-pod656e861afe3d944d6b3ce77e-7862.node.inscode.run' const BASE_URL = 'https://gpu-pod656e861afe3d944d6b3ce77e-7862.node.inscode.run'
const request = async (url, options = {}) => { const request = async (url, options = {}) => {
console.log(8989)
const fullUrl = BASE_URL + url const fullUrl = BASE_URL + url
const config = { const config = {
method: options.method || 'get', method: options.method || 'get',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册