style: lint fix

This commit is contained in:
zclzone
2023-05-07 22:20:57 +08:00
parent ebffe52c7c
commit 3b86597eff
7 changed files with 72 additions and 6 deletions

View File

@@ -13,7 +13,6 @@
<script setup>
import { useTagsStore, useAppStore } from '@/store'
import { renderIcon } from '@/utils'
import { useLocalStorage } from '@vueuse/core'
const props = defineProps({
show: {

View File

@@ -27,5 +27,7 @@ export async function refreshAccessToken() {
try {
const res = await api.refreshToken()
setToken(res.data.token)
} catch (error) {}
} catch (error) {
console.error(error)
}
}

View File

@@ -102,7 +102,7 @@ export function ifNull(val, def = '') {
export function isUrl(path) {
const reg =
/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/
/(((^https?:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)$/
return reg.test(path)
}

View File

@@ -26,7 +26,7 @@ defineOptions({ name: 'MDEditor' })
let post = ref({})
let btnLoading = ref(false)
function handleSavePost(e) {
function handleSavePost() {
btnLoading.value = true
$message.loading('正在保存...')
setTimeout(() => {

View File

@@ -67,7 +67,7 @@ function onBeforeUpload({ file }) {
return true
}
async function handleUpload({ file, onFinish, onError }) {
async function handleUpload({ file, onFinish }) {
if (!file || !file.type) {
$message.error('请选择文件')
}