@@ -72,7 +72,7 @@ spring:
# 端口,默认为6379
port: 16379
# 数据库索引
- database: 1
+ database: 0
# 密码
password: sooka123456
# 连接超时时间
@@ -37,6 +37,9 @@ import DictTag from '@/components/DictTag'
import VueMeta from 'vue-meta'
// 字典数据组件
import DictData from '@/components/DictData'
+// 引入echarts
+import * as echarts from 'echarts'// 在import的后面,echarts的前面加一个 * as
+Vue.prototype.$echarts = echarts
// 全局方法挂载
Vue.prototype.getDicts = getDicts
@@ -47,9 +47,9 @@ router.beforeEach((to, from, next) => {
// 在免登录白名单,直接进入
next()
} else {
- // next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页
- next(`/sso-login`) // 否则全部重定向到单点登录的登录页,而不是再进入原来的登录页
- NProgress.done()
+ next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页
+ // next(`/sso-login`) // 否则全部重定向到单点登录的登录页,而不是再进入原来的登录页
+ // NProgress.done()
}
})