@@ -68,13 +68,13 @@ spring:
# redis 配置
redis:
# 地址
- host: 127.0.0.1
+ host: 121.36.104.115
# 端口,默认为6379
- port: 16379
+ port: 6379
# 数据库索引
- database: 1
+ database: 2
# 密码
- password: sooka123456
+ password:
# 连接超时时间
timeout: 10s
lettuce:
@@ -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()
}
})