Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix: 改错
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonleex committed Jan 6, 2018
1 parent 0ed2dd7 commit f2aedde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Vue from 'vue'
import { oneOf } from '@/util'
import localEvent from 'store'
import VueRouter from 'vue-router'
import * as Message from '../plugins/messageToast'
import { MessageToast } from '../plugins/messageToast'

import routes from './routes'

Expand Down Expand Up @@ -58,7 +58,7 @@ router.beforeEach((to, from, next) => {
? next({ path: `${redirect || '/feed/new'}` }) : next()
} else {
requiresAuth ? (() => {
Message.Msg.error('您还没有登录, 请先登录或注册')
MessageToast.error('您还没有登录, 请先登录或注册')
setTimeout(function () {
next({ path: '/signin', query: { redirect: to.fullPath } })
}, 1500)
Expand Down

0 comments on commit f2aedde

Please sign in to comment.