uploadImg(e, record, index) { const file = e.target.files[0]; // 判斷上傳圖片的大小 限制 if (file.size / 1024 1000) { const that = this; let imgWidth = ""; let imgHight = ""; // 限制圖片的尺寸 為2