更新 deckLayer 类
This commit is contained in:
@@ -241,13 +241,13 @@ const Timeline: React.FC<TimelineProps> = ({
|
||||
// 播放控制
|
||||
const handlePlay = useCallback(() => {
|
||||
if (!isPlaying) {
|
||||
if (junctionText === "" && pipeText === "") {
|
||||
open?.({
|
||||
type: "error",
|
||||
message: "请至少设定并应用一个图层的样式。",
|
||||
});
|
||||
// return;
|
||||
}
|
||||
// if (junctionText === "" && pipeText === "") {
|
||||
// open?.({
|
||||
// type: "error",
|
||||
// message: "请至少设定并应用一个图层的样式。",
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
setIsPlaying(true);
|
||||
|
||||
intervalRef.current = setInterval(() => {
|
||||
@@ -367,13 +367,13 @@ const Timeline: React.FC<TimelineProps> = ({
|
||||
// 检查至少一个属性有值
|
||||
const junctionProperties = junctionText;
|
||||
const pipeProperties = pipeText;
|
||||
if (junctionProperties === "" && pipeProperties === "") {
|
||||
open?.({
|
||||
type: "error",
|
||||
message: "请至少设定并应用一个图层的样式。",
|
||||
});
|
||||
return;
|
||||
}
|
||||
// if (junctionProperties === "" && pipeProperties === "") {
|
||||
// open?.({
|
||||
// type: "error",
|
||||
// message: "请至少设定并应用一个图层的样式。",
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
fetchFrameData(
|
||||
currentTimeToDate(selectedDate, currentTime),
|
||||
junctionText,
|
||||
|
||||
Reference in New Issue
Block a user