mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2026-01-22 23:50:22 +08:00
fix: lint fix
This commit is contained in:
@@ -39,6 +39,7 @@ import icons from 'isme:icons'
|
||||
const { copy, copied } = useClipboard()
|
||||
|
||||
watch(copied, (val) => {
|
||||
val && $message.success('已复制到剪切板')
|
||||
if (val)
|
||||
$message.success('已复制到剪切板')
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -70,7 +70,8 @@ const imgList = reactive([
|
||||
])
|
||||
|
||||
watch(copied, (val) => {
|
||||
val && $message.success('已复制到剪切板')
|
||||
if (val)
|
||||
$message.success('已复制到剪切板')
|
||||
})
|
||||
|
||||
function onBeforeUpload({ file }) {
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
:on-update:selected-keys="onSelect"
|
||||
key-field="code"
|
||||
label-field="name"
|
||||
default-expand-all
|
||||
block-line
|
||||
|
||||
block-line default-expand-all
|
||||
/>
|
||||
</n-space>
|
||||
|
||||
@@ -115,6 +115,7 @@ function handleDelete(item) {
|
||||
emit('update:currentMenu', null)
|
||||
}
|
||||
catch (error) {
|
||||
console.error(error)
|
||||
$message.destroy('deleteMenu')
|
||||
}
|
||||
},
|
||||
|
||||
@@ -231,6 +231,7 @@ function handleDeleteBtn(id) {
|
||||
d.loading = false
|
||||
}
|
||||
catch (error) {
|
||||
console.error(error)
|
||||
d.loading = false
|
||||
}
|
||||
},
|
||||
@@ -248,6 +249,7 @@ async function handleEnable(item) {
|
||||
item.enableLoading = false
|
||||
}
|
||||
catch (error) {
|
||||
console.error(error)
|
||||
item.enableLoading = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,9 +74,8 @@
|
||||
:data="permissionTree"
|
||||
:checked-keys="modalForm.permissionIds"
|
||||
:on-update:checked-keys="(keys) => (modalForm.permissionIds = keys)"
|
||||
checkable
|
||||
check-on-click
|
||||
default-expand-all
|
||||
|
||||
default-expand-all checkable check-on-click
|
||||
class="cus-scroll max-h-200 w-full"
|
||||
/>
|
||||
</n-form-item>
|
||||
@@ -211,6 +210,7 @@ async function handleEnable(row) {
|
||||
$table.value?.handleSearch()
|
||||
}
|
||||
catch (error) {
|
||||
console.error(error)
|
||||
row.enableLoading = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -279,6 +279,7 @@ async function handleEnable(row) {
|
||||
$table.value?.handleSearch()
|
||||
}
|
||||
catch (error) {
|
||||
console.error(error)
|
||||
row.enableLoading = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user