【issues/9618】去掉lodash改用lodash-es

This commit is contained in:
JEECG 2026-05-13 12:14:18 +08:00
parent 49d9ec9087
commit 92029ac626

View File

@ -40,7 +40,7 @@
<script setup lang="ts">
import type { JeecgTag } from './jeecg-tags/types';
import { computed, nextTick, onMounted, onUnmounted, onUpdated, ref, watch } from 'vue';
import * as lodash from 'lodash';
import { throttle } from 'lodash-es';
import md5 from 'crypto-js/md5';
import MarkdownIt from 'markdown-it';
import mdKatex from '@traptitech/markdown-it-katex';
@ -103,7 +103,7 @@
/**
* 处理聊天文本并在一定时间内节流更新
*/
const updateTextContent = lodash.throttle(() => {
const updateTextContent = throttle(() => {
let value = props.text ?? '';
if (props.inversion !== 'user') {
// markdown