Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
canwdev committed Dec 6, 2024
2 parents 7c84f9c + c7fcc5c commit 064d29c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions public/lib/vue/example-1.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup>
const {ref} = Vue
const message = ref('Hello Vue')
<script lang="ts" setup>
const {ref} = 'vue'
const message = ref<string>('Hello Vue')
</script>

<template>
Expand Down
9 changes: 8 additions & 1 deletion src/components/AI/utils/print-content.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
export const getChatContentHtml = async (el: Element, title) => {
let html: string = ''
html += `<html><head><title>${title}</title>`
html += `<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>${title}</title>`

// 添加样式
const cssModule = await import('@/styles/markdown/github-markdown.css?raw')
Expand Down

0 comments on commit 064d29c

Please sign in to comment.