|
@@ -156,8 +156,10 @@ export default {
|
|
|
async handler(newVal) {
|
|
|
this.isItem = false;
|
|
|
console.log("模板更换了",newVal);
|
|
|
- await this.fetchTemplate(newVal);
|
|
|
- await this.fetchHeaderData(newVal);
|
|
|
+ if (newVal != null && newVal != undefined && newVal != '') {
|
|
|
+ await this.fetchTemplate(newVal);
|
|
|
+ await this.fetchHeaderData(newVal);
|
|
|
+ }
|
|
|
this.isItem = true;
|
|
|
},
|
|
|
immediate:false,
|