qiushang 3 달 전
부모
커밋
8c09c7c1c6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/renderer/components/home.vue

+ 1 - 1
src/renderer/components/home.vue

@@ -3021,7 +3021,7 @@
 				// 已页面标题作为新建文件夹,保留前50个字
 				let title = await page.title();
 				if(title){
-					title = title.substring(0, 50);
+					title = title.substring(0, 50).trim();
 					if(this.containsAnyChar(title, ['\\', '/', ':', '*', '?', '"', '<', '>', '|'])){  //判断是否含有特殊字符
 						title = title.replace(/[\\|/|:|*|?|"|<|>||]/g, "");
 					}