|
@@ -209,7 +209,9 @@ export default {
|
|
},
|
|
},
|
|
async getCardPages() {
|
|
async getCardPages() {
|
|
const detData = await cardDetail(this.basicInfo.cardId);
|
|
const detData = await cardDetail(this.basicInfo.cardId);
|
|
- const cardContent = JSON.parse(detData.content);
|
|
|
|
|
|
+ const cardContent = detData?.content
|
|
|
|
+ ? JSON.parse(detData.content)
|
|
|
|
+ : { pages: [] };
|
|
this.cardPages = cardContent.pages;
|
|
this.cardPages = cardContent.pages;
|
|
},
|
|
},
|
|
async updateList() {
|
|
async updateList() {
|