|
@@ -292,11 +292,11 @@ export default {
|
|
|
if (this.$checkRes(res)) {
|
|
|
let adv1 = res.data[0];
|
|
|
let adv2 = res.data[1];
|
|
|
- if (adv1.type == '0') {
|
|
|
+ if (adv1 && adv1.type == '0') {
|
|
|
let Obj = JSON.parse(adv1.url);
|
|
|
adv1.url = `/newsList/module/${Obj.id}?title=${Obj.title}`;
|
|
|
}
|
|
|
- if (adv2.type == '0') {
|
|
|
+ if (adv2 && adv2.type == '0') {
|
|
|
let Obj = JSON.parse(adv2.url);
|
|
|
adv2.url = `/newsList/module/${Obj.id}?title=${Obj.title}`;
|
|
|
}
|