desc: 调整个人信息修改接口参数
This commit is contained in:
parent
60c58fe290
commit
d056b8bfc8
@ -119,7 +119,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import md5 from 'js-md5';
|
import md5 from 'js-md5';
|
||||||
import { getInfo } from '@/api/login';
|
import { getInfo } from '@/api/login';
|
||||||
import { getDesignToken } from '@/utils/auth'; // 验权
|
import { getDesignToken, getToken } from '@/utils/auth'; // 验权
|
||||||
import { getUserinfoName, getUserinfoNickname, getUserinfoMobile, getUserinfoMobileCode, getUserinfoEmailCode, getUserinfoEmail, getUserinfoPassword } from '@/api/management/user';
|
import { getUserinfoName, getUserinfoNickname, getUserinfoMobile, getUserinfoMobileCode, getUserinfoEmailCode, getUserinfoEmail, getUserinfoPassword } from '@/api/management/user';
|
||||||
import { setInterval, clearInterval } from 'timers';
|
import { setInterval, clearInterval } from 'timers';
|
||||||
|
|
||||||
@ -187,7 +187,8 @@ export default {
|
|||||||
},
|
},
|
||||||
doShow() {
|
doShow() {
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
getInfo(getDesignToken()).then(response => {
|
const token = getToken() || getDesignToken();
|
||||||
|
getInfo(token).then(response => {
|
||||||
const user = response.data;
|
const user = response.data;
|
||||||
this.userInfo = {
|
this.userInfo = {
|
||||||
name: user.name,
|
name: user.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user