Commit da349aaf authored by yyh's avatar yyh

fix banners 删除问题

parent f44dfc3d
......@@ -197,7 +197,6 @@ const router = new VueRouter({
routes,
});
router.beforeEach((to: Route, from: Route, next: any) => {
console.log(to);
if (to.name !== 'Login' && !store.state.isLogin && to.meta.requiresAuth) {
next({ name: 'Login' });
} else {
......
......@@ -85,7 +85,6 @@ export default class AddBanner extends Vue {
private del(index: number) {
this.imgs.splice(index, 1);
const value = [...this.hashs];
value.splice(index, 1);
this.emitBanners(value);
}
private getFile(file: any) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment