fix: debug

This commit is contained in:
osiris
2023-12-10 21:04:44 +08:00
parent 0dbbf28553
commit e1b0a0de99
5 changed files with 14 additions and 13 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { reactive } from 'vue'
import DetailHeader from '@/components/Layout/DetailHeader/DetailHeader.vue'
import { copy } from '@/utils/string'
// import { copy } from '@/utils/string'
const info = reactive({
title: "ASCII码表",
})
@@ -271,9 +271,9 @@ const tableDataNonStandard = reactive([
])
//copy
const copyRes = async (resStr: string) => {
copy(resStr)
}
// const copyRes = async (resStr: string) => {
// copy(resStr)
// }
</script>
<template>
+4 -4
View File
@@ -1,15 +1,15 @@
<script setup lang="ts">
import { reactive } from 'vue'
import DetailHeader from '@/components/Layout/DetailHeader/DetailHeader.vue'
import { copy } from '@/utils/string'
// import { copy } from '@/utils/string'
const info = reactive({
title: "tool name",
})
//copy
const copyRes = async (resStr: string) => {
copy(resStr)
}
// const copyRes = async (resStr: string) => {
// copy(resStr)
// }
</script>
<template>
+3 -3
View File
@@ -12,7 +12,7 @@ const info = reactive({
size: '200',
sizeSelect: '',
margin: 1,
fileList: [],
fileList: <string[]>[],
fileUrl: '',
preColor: '#000',
bgColor: '#fff',
@@ -37,7 +37,7 @@ const setQRSize = () => {
}
const handleChange = (file: UploadFile) => {
info.fileList.push(file.url)
info.fileList.push(file.url as string)
info.fileUrl = info.fileList[0] ?? ''
}
@@ -140,7 +140,7 @@ const gen = () => {
<el-button type="primary" @click="gen">生成二维码</el-button>
</div>
</div>
<div>
<div class="w-[200px] h-[200px]">
<QRCodeVue3
:key="info.qrKey"
:width="info.width"