mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2025-12-19 17:32:23 +08:00
Fix Type Error
This commit is contained in:
@@ -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[] = [
|
||||
|
||||
@@ -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获取用户菜单
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user