uni.chooseMessageFile({
count: 1,
type: 'file',
extension: ['.xlsx'],
success: (res) => {
if (res.tempFiles && res.tempFiles.length > 0) {
const file = res.tempFiles[0];
this.importSendCarFeeFn(file);
}
},
fail: (err) => {
this.$toast('选择文件失败');
console.error('选择文件失败:', err);
}
});
聊天记录中有文件
点击去选择显示无文件
在安卓手机上正常

extension: ['.xlsx'],拓展名里不要加 '.'