提交 17ba6eef 编写于 作者: E Evan

fix: can't remember path before redirect

上级 8bba4cf9
......@@ -22,7 +22,7 @@ Vue.use(mavonEditor)
// 如果前端没有登录信息则直接拦截,如果有则判断后端是否正常登录(防止构造参数绕过)
router.beforeEach((to, from, next) => {
if (to.meta.requireAuth) {
if (store.state.user) {
if (store.state.user.username) {
axios.get('/authentication').then(resp => {
if (resp) next()
})
......
......@@ -10,11 +10,28 @@ Target Server Type : MYSQL
Target Server Version : 80015
File Encoding : 65001
Date: 2019-11-05 21:33:28
Date: 2019-11-07 12:27:05
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for artworks
-- ----------------------------
DROP TABLE IF EXISTS `artworks`;
CREATE TABLE `artworks` (
`id` int(5) NOT NULL,
`department` varchar(255) NOT NULL,
`author` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL,
`url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of artworks
-- ----------------------------
-- ----------------------------
-- Table structure for book
-- ----------------------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册