Skip to content

Commit

Permalink
Fix Type Error
Browse files Browse the repository at this point in the history
  • Loading branch information
jekip committed Oct 17, 2024
1 parent 7a62de3 commit f729a5b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
12 changes: 1 addition & 11 deletions mock/system/menu.ts
Original file line number Diff line number Diff line change
@@ -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[] = [
Expand Down
11 changes: 10 additions & 1 deletion src/api/system/menu.ts
Original file line number Diff line number Diff line change
@@ -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获取用户菜单
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/menu/menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 1 addition & 3 deletions src/views/system/role/role.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f729a5b

Please sign in to comment.