feat: 根据eslint 对项目进行规范化处理

This commit is contained in:
piexlMax(奇淼
2024-11-09 10:17:57 +08:00
parent fae6f413a5
commit 87a4ce17e1
26 changed files with 51 additions and 117 deletions
@@ -26,12 +26,9 @@ const basePath = import.meta.env.VITE_BASE_API
import { onBeforeUnmount, ref, shallowRef, watch } from 'vue'
import { Editor, Toolbar } from '@wangeditor/editor-for-vue'
import { useUserStore } from '@/pinia/modules/user'
import { ElMessage } from 'element-plus'
import { getUrl } from '@/utils/image'
const userStore = useUserStore()
const emits = defineEmits(['change', 'update:modelValue'])
const change = (editor) => {
@@ -17,10 +17,6 @@ import '@wangeditor/editor/dist/css/style.css' // 引入 css
import { onBeforeUnmount, ref, shallowRef, watch } from 'vue'
import { Editor } from '@wangeditor/editor-for-vue'
import { useUserStore } from '@/pinia/modules/user'
const userStore = useUserStore()
const emits = defineEmits(['change', 'update:modelValue'])
const editorConfig = ref({
readOnly: true
+1 -1
View File
@@ -29,7 +29,7 @@ defineOptions({
name: 'UploadCommon',
})
const props = defineProps({
defineProps({
limit: {
type: Number,
default: 3