fix(功能用例): 修复因富文本框光标导致的滚动条位置初始化不对问题

--bug=1036910 --user=宋天阳 【用例管理】新建/编辑功能用例,页面显示在中间位置,应该显示在最上方 https://www.tapd.cn/55049933/s/1489434
This commit is contained in:
Jianguo-Genius 2024-04-07 17:27:53 +08:00 committed by 刘瑞斌
parent e7555e436c
commit a7b11a91a2
2 changed files with 2 additions and 11 deletions

View File

@ -345,7 +345,7 @@
suggestion,
}),
],
autofocus: 'start',
autofocus: false,
onUpdate: () => {
debounceOnUpdate();
},

View File

@ -509,15 +509,6 @@
}
}
function beforeUpload(file: File) {
const _maxSize = 50 * 1024 * 1024;
if (file.size > _maxSize) {
Message.warning(t('ms.upload.overSize'));
return Promise.resolve(false);
}
return Promise.resolve(true);
}
function associatedFile() {
associatedDrawer.value = true;
}
@ -761,7 +752,7 @@
//
fApi.value.setValue(tmpObj);
//
if (isPlatformDefaultTemplate && form.value.platformSystemFields) {
if (isPlatformDefaultTemplate.value && form.value.platformSystemFields) {
Object.keys(form.value.platformSystemFields).forEach((key) => {
form.value.platformSystemFields[key] = tmpObj[key];
});