diff --git a/src/assets/img/log-bg.png b/src/assets/img/log-bg.png
index 7f32bdc..f6de30e 100644
Binary files a/src/assets/img/log-bg.png and b/src/assets/img/log-bg.png differ
diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue
index c2d132d..785218c 100644
--- a/src/layouts/header/index.vue
+++ b/src/layouts/header/index.vue
@@ -46,33 +46,6 @@
确 定
-
-
-
-
-
-
更新日志
-
-
-
-
{{ item.versionName }}
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue
index 3e8a748..395addd 100644
--- a/src/pages/account/login/index.vue
+++ b/src/pages/account/login/index.vue
@@ -249,7 +249,8 @@ export default {
// 选择用户回调
chooseUser(user) {
user.isEnable && this.$post(`${this.api.getToken}?id=${user.id}`).then(({ data }) => {
- this.queryClient(data.token)
+ this.token = data.token
+ this.setLogin()
}).catch(res => {})
},
// 处理登录成功
@@ -294,8 +295,13 @@ export default {
} else if (status == 200) {
// 如果返回的是数组,则弹框给用户选择登录哪个用户,否则,直接登录
if (data instanceof Array) {
- this.users = data
- this.userVisible = true
+ // 如果只查询到一个用户,则直接登录,否则,弹框让用户选择
+ if (data.length === 1) {
+ this.chooseUser(data[0])
+ } else {
+ this.users = data
+ this.userVisible = true
+ }
} else {
this.token = data.token
this.setLogin()
diff --git a/src/pages/screen/list/index.vue b/src/pages/screen/list/index.vue
index 18f0187..acdbe40 100644
--- a/src/pages/screen/list/index.vue
+++ b/src/pages/screen/list/index.vue
@@ -648,13 +648,13 @@ export default {
boundaryGap: false,
axisLabel: {
textStyle: {
- color: "rgba(255,255,255,.6)",
+ color: "rgba(255,255,255,1)",
fontSize: 12,
},
},
axisLine: {
lineStyle: {
- color: 'rgba(255,255,255,.2)'
+ color: 'rgba(255,255,255,1)'
}
},
data: data.map(e => e.statistical_time.replace(' 0:00', ''))
@@ -680,7 +680,7 @@ export default {
},
axisLabel: {
textStyle: {
- color: "rgba(255,255,255,.6)",
+ color: "rgba(255,255,255,1)",
fontSize: 12,
},
},
@@ -990,9 +990,7 @@ export default {
axisLabel: {
margin: 10,
textStyle: {
- fontSize: 12
- },
- textStyle: {
+ fontSize: 12,
color: '#fff'
},
formatter: '{value}%'
@@ -1112,7 +1110,7 @@ export default {
// 使用函数模板 传入的数据值 -> value: number | Array
formatter: function (val) {
const { data } = val
- return data ? (data.name + '利率: ' + data.value + '%') : val.name
+ return data ? (data.name + '利率: ' + data.value + '%') : ''
}
},
// 视觉映射组件
diff --git a/src/setting.js b/src/setting.js
index 9d6f976..faeaa23 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -25,7 +25,7 @@ const Setting = {
* 正式:http://www.dataforward.cn:9000
* */
// apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://39.108.250.202:9000',
- apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000/' : `${location.origin}:9000/`,
+ apiBaseURL: env === 'development' ? 'http://39.108.250.202:9000/' : `${location.origin}:9000/`,
// 加密货币接口地址
cryptoBaseURL: `http://159.138.53.111/`,
// 接口请求返回错误时,弹窗的持续时间,单位:秒