feat: 使用prettierrc对代码进行格式化

This commit is contained in:
piexlMax(奇淼
2024-11-09 10:32:26 +08:00
parent 87a4ce17e1
commit 7d9af64f6d
139 changed files with 12677 additions and 12656 deletions
@@ -1,28 +1,26 @@
<template>
<el-button
type="primary"
icon="download"
@click="exportTemplate"
>下载模板</el-button>
<el-button type="primary" icon="download" @click="exportTemplate"
>下载模板</el-button
>
</template>
<script setup>
const props = defineProps({
templateId: {
type: String,
required: true
}
})
const props = defineProps({
templateId: {
type: String,
required: true
}
})
import { ElMessage } from 'element-plus'
import { ElMessage } from 'element-plus'
const exportTemplate = async() => {
if (props.templateId === '') {
ElMessage.error('组件未设置模板ID')
return
const exportTemplate = async () => {
if (props.templateId === '') {
ElMessage.error('组件未设置模板ID')
return
}
const baseUrl = import.meta.env.VITE_BASE_API
const url = `${baseUrl}/sysExportTemplate/exportTemplate?templateID=${props.templateId}`
window.open(url, '_blank')
}
const baseUrl = import.meta.env.VITE_BASE_API
const url = `${baseUrl}/sysExportTemplate/exportTemplate?templateID=${props.templateId}`
window.open(url, '_blank')
}
</script>