导入
import Cookies from “js-cookie”;
import { TOKEN_KEY } from “@/libs/util”;
data() {
rutuen {
headers: {
Authorization: "Bearer " + Cookies.get(TOKEN_KEY)
}, //请求头
upurl: getup //批量导入地址
}
}
//批量上传失败
onFormatError(file) {
// console.log(file)
this.KaTeX parse error: Expected 'EOF', got '}' at position 40: …sx后缀的文件"); }̲, // 上传成功函数…Notice.warning({
title: “导入失败”,
desc: response
});
} else {
this.KaTeX parse error: Expected 'EOF', got '}' at position 86: … }); }̲ }, //上…refs.upload.clearFiles();
}