|
|
|
@ -88,6 +88,7 @@ |
|
|
|
import googleIcon from '/@/assets/images/login/google-icon.png'; |
|
|
|
|
|
|
|
import { buildRoutes } from '/@/router/index'; |
|
|
|
import { HOME_PAGE_PATH } from '/@/constants/system/home-const'; |
|
|
|
import { smartSentry } from '/@/lib/smart-sentry'; |
|
|
|
import { encryptData } from '/@/lib/encrypt'; |
|
|
|
import { localSave } from '/@/utils/local-util.js'; |
|
|
|
@ -147,7 +148,7 @@ |
|
|
|
useDictStore().initData(dictRes.data); |
|
|
|
//构建系统的路由 |
|
|
|
buildRoutes(); |
|
|
|
router.push('/home'); |
|
|
|
router.push(HOME_PAGE_PATH); |
|
|
|
} catch (e) { |
|
|
|
if (e.data && e.data.code !== 0) { |
|
|
|
loginForm.captchaCode = ''; |
|
|
|
|