mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
refactor: eslint
This commit is contained in:
@@ -10,6 +10,7 @@ const props = withDefaults(
|
||||
loading?: boolean
|
||||
}>(),
|
||||
{
|
||||
currentChatId: undefined,
|
||||
chatList: () => [],
|
||||
loading: false,
|
||||
}
|
||||
|
||||
@@ -11,7 +11,9 @@ const props = withDefaults(
|
||||
currentChat: ChatInfo
|
||||
datasource?: number
|
||||
}>(),
|
||||
{}
|
||||
{
|
||||
datasource: undefined,
|
||||
}
|
||||
)
|
||||
|
||||
const emits = defineEmits(['update:datasource'])
|
||||
|
||||
@@ -12,7 +12,9 @@ const props = withDefaults(
|
||||
modelValue?: number
|
||||
currentChat: ChatInfo
|
||||
}>(),
|
||||
{}
|
||||
{
|
||||
modelValue: undefined,
|
||||
}
|
||||
)
|
||||
|
||||
const dsList = ref<Array<any>>([])
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
class="sqlbot-search"
|
||||
placeholder="Search"
|
||||
prefix-icon="el-icon-search"
|
||||
@keyup.enter.native="handleSearch"
|
||||
@keyup.enter="handleSearch"
|
||||
>
|
||||
<template #prefix>
|
||||
<el-icon class="el-input__icon"><search /></el-icon>
|
||||
@@ -96,7 +96,6 @@ import IconOpeDownload from '@/assets/svg/operate/ope-download.svg'
|
||||
import IconOpeAdd from '@/assets/svg/operate/ope-add.svg'
|
||||
import IconOpeEdit from '@/assets/svg/operate/ope-edit.svg'
|
||||
import IconOpeDelete from '@/assets/svg/operate/ope-delete.svg'
|
||||
import { Search } from '@element-plus/icons-vue'
|
||||
import { termApi } from '@/api/setting'
|
||||
const keyword = ref('')
|
||||
const dialogFormVisible = ref(false)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
v-model="keyword"
|
||||
class="sqlbot-search"
|
||||
placeholder="Search"
|
||||
@keyup.enter.native="handleSearch"
|
||||
@keyup.enter="handleSearch"
|
||||
>
|
||||
<template #prefix>
|
||||
<el-icon class="el-input__icon"><IconSearch /></el-icon>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
class="sqlbot-search"
|
||||
placeholder="Search"
|
||||
prefix-icon="el-icon-search"
|
||||
@keyup.enter.native="handleSearch"
|
||||
@keyup.enter="handleSearch"
|
||||
>
|
||||
<template #prefix>
|
||||
<el-icon class="el-input__icon"><search /></el-icon>
|
||||
@@ -127,7 +127,6 @@ import IconOpeAdd from '@/assets/svg/operate/ope-add.svg'; */
|
||||
import { SuccessFilled, CircleCloseFilled } from '@element-plus/icons-vue'
|
||||
import IconOpeEdit from '@/assets/svg/operate/ope-edit.svg'
|
||||
import IconOpeDelete from '@/assets/svg/operate/ope-delete.svg'
|
||||
import { Search } from '@element-plus/icons-vue'
|
||||
import { userApi } from '@/api/auth'
|
||||
import { formatTimestamp } from '@/utils/date'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user