|
@@ -212,18 +212,20 @@ export default {
|
|
|
defaultProps: {
|
|
|
children: 'children',
|
|
|
label: 'name'
|
|
|
- }
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
|
|
|
},
|
|
|
created() {
|
|
|
- const { item } = this.$route.query;
|
|
|
- this.mainForm.mainTitle = item.mainTitle;
|
|
|
- this.mainForm.subtitle = item.subTitle;
|
|
|
- this.mainForm.goodsType = item.type;
|
|
|
- this.objectId = item.goodsNewsCategoryId
|
|
|
+ if(this?.$route?.params?.pageCode){
|
|
|
+ const item = JSON.parse(this?.$route?.params?.pageCode)
|
|
|
+ this.mainForm.mainTitle = item.mainTitle;
|
|
|
+ this.mainForm.subtitle = item.subTitle;
|
|
|
+ this.mainForm.goodsType = item.type;
|
|
|
+ this.objectId = item.goodsNewsCategoryId
|
|
|
+ }
|
|
|
|
|
|
this.getEnterpriseTemplate()
|
|
|
this.getactivityGoodsDetail()
|