Fix Type Error

This commit is contained in:
ahjung
2024-10-17 21:02:08 +08:00
parent 7a62de39c2
commit f729a5b8ba
4 changed files with 13 additions and 16 deletions

View File

@@ -1,16 +1,6 @@
import { defineMock } from '@alova/mock';
import { resultSuccess } from '../_util';
export interface ListDate {
label: string;
key: string;
type: number;
subtitle: string;
openType: number;
auth: string;
path: string;
children?: ListDate[];
}
import type { ListDate } from '@/api/system/menu';
const menuList = () => {
const result: ListDate[] = [

View File

@@ -1,5 +1,14 @@
import { Alova } from '@/utils/http/alova/index';
import { ListDate } from 'mock/system/menu';
export interface ListDate {
label: string;
key: string;
type: number;
subtitle: string;
openType: number;
auth: string;
path: string;
children?: ListDate[];
}
/**
* @description: 根据用户id获取用户菜单

View File

@@ -132,7 +132,7 @@
import { getMenuList } from '@/api/system/menu';
import { getTreeItem } from '@/utils';
import CreateDrawer from './CreateDrawer.vue';
import { ListDate } from 'mock/system/menu';
import type { ListDate } from '@/api/system/menu';
const rules = {
label: {

View File

@@ -75,10 +75,8 @@
import { getTreeAll } from '@/utils';
import CreateModal from './CreateModal.vue';
import EditModal from './EditModal.vue';
import { useRouter } from 'vue-router';
import { ListDate } from 'mock/system/menu';
import type { ListDate } from '@/api/system/menu';
const router = useRouter();
const message = useMessage();
const actionRef = ref();
const createModalRef = ref();