|
|
@@ -13,7 +13,7 @@ import 'braft-editor/dist/index.css'
|
|
|
import classNames from 'classnames'
|
|
|
import { MessageFu } from '@/utils/message'
|
|
|
import { fileDomInitialFu } from '@/utils/domShow'
|
|
|
-import { baseURL } from '@/utils/http'
|
|
|
+import { baseUrlTemp } from '@/utils/http'
|
|
|
|
|
|
import { forwardRef, useImperativeHandle } from 'react'
|
|
|
import { API_upFile } from '@/store/action/layout'
|
|
|
@@ -130,11 +130,12 @@ function ZRichTexts(
|
|
|
const res = await API_upFile(fd, myUrl)
|
|
|
if (res.code === 0) {
|
|
|
MessageFu.success('上传成功!')
|
|
|
+
|
|
|
// 在光标位置插入图片
|
|
|
const newTxt = ContentUtils.insertMedias(sectionArr[nowIndexRef.current].txt, [
|
|
|
{
|
|
|
type: isVideoFlag ? 'VIDEO' : 'IMAGE',
|
|
|
- url: baseURL + res.data.filePath
|
|
|
+ url: baseUrlTemp + res.data.filePath
|
|
|
}
|
|
|
])
|
|
|
const arr = [...sectionArr]
|