yh-i18n 2.2.10 → 2.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/excelTool.ts +0 -3
- package/package.json +1 -1
package/excelTool.ts
CHANGED
|
@@ -193,7 +193,6 @@ export async function importExcel(getDataList) {
|
|
|
193
193
|
return false;
|
|
194
194
|
} else {
|
|
195
195
|
try {
|
|
196
|
-
console.time("保存:")
|
|
197
196
|
const workbook = new ExcelJS.Workbook();
|
|
198
197
|
await workbook.xlsx.load(file);
|
|
199
198
|
if (workbook.keywords !== verificationCode) {
|
|
@@ -233,7 +232,6 @@ export async function importExcel(getDataList) {
|
|
|
233
232
|
while (flag) {
|
|
234
233
|
if(dataList.length > saveLength) {
|
|
235
234
|
let perCent = (dataLen - dataList.length)/dataLen
|
|
236
|
-
console.log(perCent);
|
|
237
235
|
let fillIndex = parseInt((perCent / 0.5 * 10).toFixed(0));
|
|
238
236
|
let loadingText = new Array(20);
|
|
239
237
|
loadingText.fill('◇',0,20-fillIndex)
|
|
@@ -248,7 +246,6 @@ export async function importExcel(getDataList) {
|
|
|
248
246
|
loading.close();
|
|
249
247
|
ElMessage.success("导入数据保存成功")
|
|
250
248
|
getDataList();
|
|
251
|
-
console.timeEnd("保存:")
|
|
252
249
|
} catch (error) {
|
|
253
250
|
ElMessage.error("导入保存翻译数据遇到错误:",error.message)
|
|
254
251
|
}
|