From af5adf01f7f4021508798b6260384d57c534f821 Mon Sep 17 00:00:00 2001
From: hxr <1490493387@qq.com>
Date: Tue, 8 Aug 2023 01:31:09 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20eslint=20=E6=8A=A5=E9=94=99?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Former-commit-id: f97fd0d877d15983a46e1eea254d7129703567ea
---
src/views/demo/icons.vue | 6 +++---
src/views/system/dept/index.vue | 2 +-
src/views/system/menu/index.vue | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/views/demo/icons.vue b/src/views/demo/icons.vue
index 562da5d1..3527d757 100644
--- a/src/views/demo/icons.vue
+++ b/src/views/demo/icons.vue
@@ -122,15 +122,15 @@ const icons = ref(ElementPlusIconsVue);
const { text, isSupported, copy } = useClipboard();
-function generateIconCode(symbol) {
+function generateIconCode(symbol: any) {
return ``;
}
-function generateElementIconCode(symbol) {
+function generateElementIconCode(symbol: any) {
return `<${symbol} />`;
}
-function handleClipboard(text, event) {
+function handleClipboard(text: any, event: any) {
// clipboard(text, event);
copy(text)
.then(() => {
diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index 605512f5..eb2d9b97 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -66,7 +66,7 @@ async function getDeptOptions() {
listDeptOptions().then((response) => {
deptOptions.value = [
{
- value: 0,
+ value: "0",
label: "顶级部门",
children: response.data,
},
diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue
index cfe1d673..49fd6a5f 100644
--- a/src/views/system/menu/index.vue
+++ b/src/views/system/menu/index.vue
@@ -93,7 +93,7 @@ function onRowClick(row: MenuVO) {
function openDialog(parentId?: number, menuId?: number) {
listMenuOptions()
.then(({ data }) => {
- menuOptions.value = [{ value: 0, label: "顶级菜单", children: data }];
+ menuOptions.value = [{ value: "0", label: "顶级菜单", children: data }];
})
.then(() => {
dialog.visible = true;