chore: 标记为非代理对象 消除warning
This commit is contained in:
parent
e0b4bf0956
commit
3014b62086
@ -2,7 +2,7 @@
|
|||||||
import type { Recordable } from '@vben/types';
|
import type { Recordable } from '@vben/types';
|
||||||
import type { Key } from 'ant-design-vue/es/vc-tree/interface';
|
import type { Key } from 'ant-design-vue/es/vc-tree/interface';
|
||||||
|
|
||||||
import { type Component, ref } from 'vue';
|
import { type Component, markRaw, ref } from 'vue';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
CodeMirror,
|
CodeMirror,
|
||||||
@ -98,12 +98,12 @@ function convertToTree(paths: string[]): TreeNode[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const iconMap = [
|
const iconMap = [
|
||||||
{ key: 'java', value: JavaIcon },
|
{ key: 'java', value: markRaw(JavaIcon) },
|
||||||
{ key: 'xml', value: XmlIcon },
|
{ key: 'xml', value: markRaw(XmlIcon) },
|
||||||
{ key: 'sql', value: SqlIcon },
|
{ key: 'sql', value: markRaw(SqlIcon) },
|
||||||
{ key: 'ts', value: TsIcon },
|
{ key: 'ts', value: markRaw(TsIcon) },
|
||||||
{ key: 'vue', value: VueIcon },
|
{ key: 'vue', value: markRaw(VueIcon) },
|
||||||
{ key: 'folder', value: FolderIcon },
|
{ key: 'folder', value: markRaw(FolderIcon) },
|
||||||
];
|
];
|
||||||
function findIcon(path: string) {
|
function findIcon(path: string) {
|
||||||
const defaultFileIcon = DefaultFileIcon;
|
const defaultFileIcon = DefaultFileIcon;
|
||||||
|
Loading…
Reference in New Issue
Block a user