换源修改
This commit is contained in:
@@ -14,18 +14,6 @@ ENV LANG=C.UTF-8 \
|
||||
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple \
|
||||
PIP_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn
|
||||
|
||||
# 设置阿里云Debian源和时区
|
||||
RUN echo "deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib" > /etc/apt/sources.list && \
|
||||
echo "deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib" >> /etc/apt/sources.list && \
|
||||
echo "deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib" >> /etc/apt/sources.list && \
|
||||
echo "deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib" >> /etc/apt/sources.list && \
|
||||
echo "deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib" >> /etc/apt/sources.list && \
|
||||
echo "deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib" >> /etc/apt/sources.list && \
|
||||
echo "deb https://mirrors.aliyun.com/debian-security/ bookworm-security main non-free non-free-firmware contrib" >> /etc/apt/sources.list && \
|
||||
echo "deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main non-free non-free-firmware contrib" >> /etc/apt/sources.list && \
|
||||
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid && \
|
||||
apt-get update && apt-get install -y --no-install-recommends gnupg2 ca-certificates
|
||||
|
||||
# 安装系统依赖和工具
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
|
||||
@@ -981,15 +981,23 @@ async function handleSubmit() {
|
||||
const processedParams = { ...dynamicParams.value };
|
||||
if (selectedMethod.value.params) {
|
||||
for (const param of selectedMethod.value.params) {
|
||||
if (param.type === 'DateRangePicker' && processedParams[param.name]) {
|
||||
if (param.type === 'DateRangePicker') {
|
||||
const dateRange = processedParams[param.name];
|
||||
if (Array.isArray(dateRange) && dateRange.length === 2) {
|
||||
// 拆分为startKey和endKey
|
||||
const startKey = (param as any).startKey || 'startDate';
|
||||
const endKey = (param as any).endKey || 'endDate';
|
||||
|
||||
if (Array.isArray(dateRange) && dateRange.length === 2 && dateRange[0] && dateRange[1]) {
|
||||
// 选择了完整的时间范围
|
||||
processedParams[startKey] = dateRange[0];
|
||||
processedParams[endKey] = dateRange[1];
|
||||
// 删除原始的range参数
|
||||
} else {
|
||||
// 未选择或选择不完整,仍然按 key 传递,只是值为空
|
||||
processedParams[startKey] = '';
|
||||
processedParams[endKey] = '';
|
||||
}
|
||||
|
||||
// 无论如何都删除原始的 range 字段,避免传 dateRange 给后端
|
||||
if (processedParams.hasOwnProperty(param.name)) {
|
||||
delete processedParams[param.name];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user