mirror of
https://github.com/501351981/vue-office.git
synced 2025-07-25 07:41:42 +08:00
fix: excel动态src丢失requestOptions
This commit is contained in:
parent
758db9c904
commit
165a93cbc7
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vue-office/excel",
|
"name": "@vue-office/excel",
|
||||||
"version": "1.1.6",
|
"version": "1.1.7",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -131,7 +131,7 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
watch(() => props.src, () => {
|
watch(() => props.src, () => {
|
||||||
if (props.src) {
|
if (props.src) {
|
||||||
getData(props.src).then(renderExcel).catch(e => {
|
getData(props.src, props.requestOptions).then(renderExcel).catch(e => {
|
||||||
xs.loadData({});
|
xs.loadData({});
|
||||||
emit('error', e);
|
emit('error', e);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user