删除无用前端

This commit is contained in:
橙子
2022-04-09 00:31:23 +08:00
parent feb73174eb
commit 7aee6c4c12
123 changed files with 62 additions and 29127 deletions

View File

@@ -1,18 +0,0 @@
import router from './router/index'
import store from './store/index'
// import accountApi from '@/api/accountApi'
router.beforeEach((to, from, next) => {
const user = store.state.user.user; //获取是有user
if (!user) { //如果没有登入
if (to.path == '/login/' || to.path == '/register/' || to.path == '/reset_password/' || to.path == '/qq/') {
next();
} else {
next({ path: '/login/' });
}
} else {
next();
}
})