Commit 5e4869ca by 蒋勇

d

parent 1e91559b
......@@ -252,7 +252,8 @@ export default {
"Button",
{
props: {
type: btninfo.type
type: btninfo.type,
disabled:params.row.isSystem && btninfo.key=="delete"?true:false
},
on: {
click: () => {
......
......@@ -85,7 +85,7 @@ export default {
console.log(rtn)
if(rtn.status==0){
commit('setToken', rtn.data.token)
commit('setAvatar', "https://file.iviewui.com/dist/a0e88e83800f138b94d2414621bd9704.png")
commit('setAvatar', (rtn.data.headUrl && rtn.data.headUrl!="")?rtn.data.headUrl:"https://file.iviewui.com/dist/a0e88e83800f138b94d2414621bd9704.png")
commit('setUserName', rtn.data.user.userName)
commit('setUserId', rtn.data.user.id)
commit('setAccess', ['super_admin', 'admin'])
......@@ -106,7 +106,7 @@ export default {
getUserInfo(state.token).then(res => {
const rtn = res.data
if(rtn.status==0){
commit('setAvatar', "https://file.iviewui.com/dist/a0e88e83800f138b94d2414621bd9704.png")
commit('setAvatar', (rtn.data.headUrl && rtn.data.headUrl!="")?rtn.data.headUrl:"https://file.iviewui.com/dist/a0e88e83800f138b94d2414621bd9704.png")
commit('setUserName', rtn.data.userName)
commit('setUserId', rtn.data.id)
commit('setAccess', ['super_admin', 'admin'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment