1
This commit is contained in:
@@ -84,8 +84,9 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
'process.env': {
|
'process.env': {
|
||||||
|
API_URL: "http://guangdongadminapi.zhongshuai2023.com",
|
||||||
// API_URL: "https://iadminapi.zhongshuai2023.com",
|
// API_URL: "https://iadminapi.zhongshuai2023.com",
|
||||||
API_URL: "http://192.168.1.63:1002",
|
// API_URL: "http://192.168.1.63:1002",
|
||||||
// API_URL: "http://192.168.1.54:1002",
|
// API_URL: "http://192.168.1.54:1002",
|
||||||
WS_URL: "ws://lv.com",
|
WS_URL: "ws://lv.com",
|
||||||
STATIC_URL: "http://lv.com",
|
STATIC_URL: "http://lv.com",
|
||||||
|
|||||||
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -8,6 +8,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script src="/umi.fdb1a0d4.js"></script>
|
<script src="/umi.78c09f24.js"></script>
|
||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
1
dist/src__pages__note__note__edit.2a8e3403.async.js
vendored
Normal file
1
dist/src__pages__note__note__edit.2a8e3403.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__note__note__index.6341b776.async.js
vendored
Normal file
1
dist/src__pages__note__note__index.6341b776.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4
dist/umi.fdb1a0d4.js → dist/umi.78c09f24.js
vendored
4
dist/umi.fdb1a0d4.js → dist/umi.78c09f24.js
vendored
File diff suppressed because one or more lines are too long
@@ -76,9 +76,14 @@ export const FilesManager = ({ fileType, count, defaultValue, mode, imagesShow =
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onCheckedFile = (item) => {
|
const onCheckedFile = (item) => {
|
||||||
console.log(item.fileType);
|
console.log(12345);
|
||||||
console.log(fileType);
|
|
||||||
|
|
||||||
|
|
||||||
|
console.log(item.fileType);
|
||||||
|
console.log(fileType,'提娜佳');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(fileType && !item.fileType.includes(fileType)){
|
if(fileType && !item.fileType.includes(fileType)){
|
||||||
message.error(`请选择正确的格式`);
|
message.error(`请选择正确的格式`);
|
||||||
return
|
return
|
||||||
@@ -86,6 +91,8 @@ export const FilesManager = ({ fileType, count, defaultValue, mode, imagesShow =
|
|||||||
|
|
||||||
|
|
||||||
const current = checkedFilesIds.indexOf(item.id);
|
const current = checkedFilesIds.indexOf(item.id);
|
||||||
|
|
||||||
|
|
||||||
//不存在添加
|
//不存在添加
|
||||||
if (current === -1) {
|
if (current === -1) {
|
||||||
setCheckedFilesIds((prev) => prev.concat(item.id));
|
setCheckedFilesIds((prev) => prev.concat(item.id));
|
||||||
|
|||||||
@@ -55,18 +55,25 @@ const RoleForm: React.FC = (props: any) => {
|
|||||||
]
|
]
|
||||||
|
|
||||||
const onChange = async (e) => {
|
const onChange = async (e) => {
|
||||||
const videoExtensions = ['.mp4', '.mkv', '.avi', '.mov', '.wmv', '.flv', '.webm', '.m4v', '.3gp', '.3g2'];
|
|
||||||
// 将URL转换为小写,以便进行不区分大小写的比较
|
var list = e.map((item, index) => {
|
||||||
const lowerCaseUrl = e.toLowerCase();
|
return { type: 'IMAGE', url: item, }
|
||||||
// 检查链接是否以任何一个视频扩展名结尾
|
})
|
||||||
if (videoExtensions.some(e => lowerCaseUrl.endsWith(e))) {
|
|
||||||
setEditorState(ContentUtils.insertMedias(editorState, [{
|
setEditorState(ContentUtils.insertMedias(editorState, list))
|
||||||
type: 'VIDEO',
|
|
||||||
url: e
|
// const videoExtensions = ['.mp4', '.mkv', '.avi', '.mov', '.wmv', '.flv', '.webm', '.m4v', '.3gp', '.3g2'];
|
||||||
}]));
|
// // 将URL转换为小写,以便进行不区分大小写的比较
|
||||||
} else {
|
// const lowerCaseUrl = e.toLowerCase();
|
||||||
setEditorState(ContentUtils.insertMedias(editorState, [{ type: 'IMAGE', url: e, },]))
|
// // 检查链接是否以任何一个视频扩展名结尾
|
||||||
}
|
// if (videoExtensions.some(e => lowerCaseUrl.endsWith(e))) {
|
||||||
|
// setEditorState(ContentUtils.insertMedias(editorState, [{
|
||||||
|
// type: 'VIDEO',
|
||||||
|
// url: e
|
||||||
|
// }]));
|
||||||
|
// } else {
|
||||||
|
// setEditorState(ContentUtils.insertMedias(editorState, [{ type: 'IMAGE', url: e, },]))
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -81,7 +88,7 @@ const RoleForm: React.FC = (props: any) => {
|
|||||||
mode=""
|
mode=""
|
||||||
imagesShow={false}
|
imagesShow={false}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
count={1}
|
count={9}
|
||||||
/>, // 指定按钮文字,此处可传入jsx,若已指定html,则text不会显示
|
/>, // 指定按钮文字,此处可传入jsx,若已指定html,则text不会显示
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
console.log('Hello World!');
|
console.log('Hello World!');
|
||||||
|
|||||||
Reference in New Issue
Block a user