|
|
@@ -418,7 +418,7 @@ export default {
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err);
|
|
|
- });
|
|
|
+ });
|
|
|
}, */
|
|
|
//导出excel
|
|
|
onOutputExcel: function () {
|
|
|
@@ -559,7 +559,7 @@ export default {
|
|
|
.then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
console.log(res);
|
|
|
- this.publishCount = res.data.data[0].publishCount;
|
|
|
+ this.publishCount = res.data.data.length > 0 ? res.data.data[0].publishCount : 0;
|
|
|
let len = this.publishCount;
|
|
|
let l = this.tableData.length;
|
|
|
console.log("获取可发布数量", len, l);
|