modify some setting
This commit is contained in:
parent
cda975cf8b
commit
7b45cb6a9f
|
|
@ -2,7 +2,7 @@
|
|||
NODE_ENV = development
|
||||
|
||||
# 标题
|
||||
VUE_APP_TITLE = SCUI(DEV)
|
||||
VUE_APP_TITLE = '曲阳金隅安全智能管控平台'
|
||||
|
||||
# 接口地址
|
||||
VUE_APP_API_BASEURL = http://49.232.14.174:2226/api
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@
|
|||
},
|
||||
created() {
|
||||
var userInfo = this.$TOOL.data.get("USER_INFO");
|
||||
this.userName = userInfo.userName;
|
||||
this.userName = userInfo.username;
|
||||
this.userNameF = this.userName.substring(0,1);
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -34,13 +34,7 @@ axios.interceptors.response.use(
|
|||
},
|
||||
(error) => {
|
||||
if (error.response) {
|
||||
if (error.response.status > 401) {
|
||||
ElNotification.error({
|
||||
title: '请求错误',
|
||||
message: error.response.data.err_msg
|
||||
});
|
||||
}
|
||||
else if (error.response.status == 401) {
|
||||
if (error.response.status == 401) {
|
||||
if(error.response.data.err_code == 'no_active_account'){
|
||||
ElNotification.error({
|
||||
title: '请求错误',
|
||||
|
|
@ -60,7 +54,7 @@ axios.interceptors.response.use(
|
|||
} else {
|
||||
ElNotification.error({
|
||||
title: '请求错误',
|
||||
message: error.message || `Status:${error.response.status},未知错误!`
|
||||
message: error.response.data.err_msg || `Status:${error.response.status},未知错误!`
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue