3
3
This commit is contained in:
12
src/App.tsx
12
src/App.tsx
@ -2206,8 +2206,11 @@ export default function App() {
|
|||||||
if (!styleText && currentStyleText) styleText = currentStyleText;
|
if (!styleText && currentStyleText) styleText = currentStyleText;
|
||||||
if (!colorText && currentColorText) colorText = currentColorText;
|
if (!colorText && currentColorText) colorText = currentColorText;
|
||||||
|
|
||||||
// 获取text2用于快照存档
|
// 获取text2用于快照存档:调整模式使用快照数据,生成模式保持为空
|
||||||
let text2 = currentText2 || '';
|
let text2 = '';
|
||||||
|
if (mode === 'adjust') {
|
||||||
|
// 调整模式:使用快照回填的数据
|
||||||
|
text2 = currentText2 || '';
|
||||||
if (!text2 && recordDetails.length > 0) {
|
if (!text2 && recordDetails.length > 0) {
|
||||||
const firstRecord = recordDetails[0];
|
const firstRecord = recordDetails[0];
|
||||||
const text2FieldValue = firstRecord.fields['fldG6LZnmU'];
|
const text2FieldValue = firstRecord.fields['fldG6LZnmU'];
|
||||||
@ -2220,6 +2223,11 @@ export default function App() {
|
|||||||
text2 = (text2FieldValue.text || text2FieldValue.name || '');
|
text2 = (text2FieldValue.text || text2FieldValue.name || '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// 生成模式:text2字段保持为空,不使用缓存数据
|
||||||
|
text2 = '';
|
||||||
|
console.log('生成模式:快照中text2字段保持为空');
|
||||||
|
}
|
||||||
|
|
||||||
const pageSnapshot = {
|
const pageSnapshot = {
|
||||||
version: versionNumber,
|
version: versionNumber,
|
||||||
|
|||||||
Reference in New Issue
Block a user