|
|
@@ -10,7 +10,9 @@ Vue.mixin({
|
|
|
let headers = req && req.headers
|
|
|
let res = await $axios.$get('/api/user/getInfo', {
|
|
|
headers
|
|
|
- }, {neverLogout: true});
|
|
|
+ }, {
|
|
|
+ neverLogout: true
|
|
|
+ });
|
|
|
if (res && res.data) {
|
|
|
store.commit('updateUserinfo', {
|
|
|
userinfo: res.data || {}
|
|
|
@@ -96,6 +98,7 @@ Vue.mixin({
|
|
|
let that = this;
|
|
|
this.$alert('未登录, 前往登录', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
+ center: true,
|
|
|
callback: action => {
|
|
|
if (that.$deviceType.app) {
|
|
|
location.href = "proginn://login?backToPage=true";
|
|
|
@@ -109,6 +112,7 @@ Vue.mixin({
|
|
|
noCompetence(title = "没有权限") {
|
|
|
this.$alert(title, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
+ center: true,
|
|
|
callback: action => {
|
|
|
location.go(-1)
|
|
|
}
|