fix: 🐛 eslint 报错问题修复
Former-commit-id: f97fd0d877d15983a46e1eea254d7129703567ea
This commit is contained in:
@@ -122,15 +122,15 @@ const icons = ref(ElementPlusIconsVue);
|
|||||||
|
|
||||||
const { text, isSupported, copy } = useClipboard();
|
const { text, isSupported, copy } = useClipboard();
|
||||||
|
|
||||||
function generateIconCode(symbol) {
|
function generateIconCode(symbol: any) {
|
||||||
return `<svg-icon icon-class="${symbol}" />`;
|
return `<svg-icon icon-class="${symbol}" />`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function generateElementIconCode(symbol) {
|
function generateElementIconCode(symbol: any) {
|
||||||
return `<el-icon><${symbol} /></el-icon>`;
|
return `<el-icon><${symbol} /></el-icon>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleClipboard(text, event) {
|
function handleClipboard(text: any, event: any) {
|
||||||
// clipboard(text, event);
|
// clipboard(text, event);
|
||||||
copy(text)
|
copy(text)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ async function getDeptOptions() {
|
|||||||
listDeptOptions().then((response) => {
|
listDeptOptions().then((response) => {
|
||||||
deptOptions.value = [
|
deptOptions.value = [
|
||||||
{
|
{
|
||||||
value: 0,
|
value: "0",
|
||||||
label: "顶级部门",
|
label: "顶级部门",
|
||||||
children: response.data,
|
children: response.data,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ function onRowClick(row: MenuVO) {
|
|||||||
function openDialog(parentId?: number, menuId?: number) {
|
function openDialog(parentId?: number, menuId?: number) {
|
||||||
listMenuOptions()
|
listMenuOptions()
|
||||||
.then(({ data }) => {
|
.then(({ data }) => {
|
||||||
menuOptions.value = [{ value: 0, label: "顶级菜单", children: data }];
|
menuOptions.value = [{ value: "0", label: "顶级菜单", children: data }];
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
dialog.visible = true;
|
dialog.visible = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user