fix: excel动态src丢失requestOptions

This commit is contained in:
liyulin 2023-06-02 10:14:19 +08:00
parent 758db9c904
commit 165a93cbc7
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@vue-office/excel",
"version": "1.1.6",
"version": "1.1.7",
"description": "",
"main": "lib/index.js",
"files": [

View File

@ -131,7 +131,7 @@ export default defineComponent({
});
watch(() => props.src, () => {
if (props.src) {
getData(props.src).then(renderExcel).catch(e => {
getData(props.src, props.requestOptions).then(renderExcel).catch(e => {
xs.loadData({});
emit('error', e);
});