mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-05-15 04:53:41 +00:00
【issues/9618】去掉lodash改用lodash-es
This commit is contained in:
parent
49d9ec9087
commit
92029ac626
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user