|
@@ -60,9 +60,7 @@ export default {
|
|
|
let data = { uri: this.uri };
|
|
|
let res = await this.import(data);
|
|
|
if (this.$checkRes(res)) {
|
|
|
- if (res.data && res.data.length > 0) {
|
|
|
- this.$set(this, `list`, res.data);
|
|
|
- }
|
|
|
+ if (typeof res.data != 'string') this.$set(this, `list`, res.data);
|
|
|
this.$toast({ type: `success`, message: `操作成功` });
|
|
|
} else {
|
|
|
this.$toast({ type: `success`, message: `${res.errmsg}` });
|