Jelajahi Sumber

Merge remote-tracking branch 'origin/master'

lchao 1 tahun lalu
induk
melakukan
e6e7fc747c

+ 1 - 1
songhua-admin/src/main/resources/application.yml

@@ -72,7 +72,7 @@ spring:
     # 端口,默认为6379
     port: 16379
     # 数据库索引
-    database: 1
+    database: 0
     # 密码
     password: sooka123456
     # 连接超时时间

File diff ditekan karena terlalu besar
+ 3306 - 0
songhua-ui/src/api/ship/diqiu.js


+ 3 - 0
songhua-ui/src/main.js

@@ -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

+ 3 - 3
songhua-ui/src/permission.js

@@ -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()
     }
   }
 })

File diff ditekan karena terlalu besar
+ 587 - 20
songhua-ui/src/views/index/index.vue