@@ -98,7 +98,11 @@ export default {
window.history.go('-1');
},
- computed: {},
+ computed: {
+ id() {
+ return this.$route.query.id;
+ },
metaInfo() {
return { title: this.$route.meta.title };
@@ -104,7 +104,7 @@ export default {
// 修改
async toEdit({ data }) {
- this.$router.push({ path: '/system/banner/detail', query: { id: data._id } });
+ this.$router.push({ path: '/system/banner/detail', query: { id: data.id } });
async toDel({ data }) {
let res = await this.delete(data._id);