|
@@ -101,8 +101,8 @@ export default {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
categoryList().then((res) => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- this.tableData = res.data.data;
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.tableData = res.data;
|
|
|
this.loading = false;
|
|
|
}
|
|
|
});
|
|
@@ -160,7 +160,7 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
categoryDelete(id).then((res) => {
|
|
|
- if (res.data.code === 0) {
|
|
|
+ if (res.code === 0) {
|
|
|
this.getList();
|
|
|
this.$message.success("删除成功!");
|
|
|
}
|