优化
This commit is contained in:
parent
ad55a8931a
commit
d03fa9eef9
36
src/App.vue
36
src/App.vue
@ -40,24 +40,24 @@ export default {
|
|||||||
},
|
},
|
||||||
...mapActions(['GET_DEPLIST', 'SET_USER_INFO']),
|
...mapActions(['GET_DEPLIST', 'SET_USER_INFO']),
|
||||||
// 获取钉钉鉴权码
|
// 获取钉钉鉴权码
|
||||||
handleGetDingtalkCode () {
|
// handleGetDingtalkCode () {
|
||||||
return new Promise((resolve, reject) => {
|
// return new Promise((resolve, reject) => {
|
||||||
let _this = this
|
// let _this = this
|
||||||
dd.runtime.permission.requestAuthCode({
|
// dd.runtime.permission.requestAuthCode({
|
||||||
corpId: 'ding267474e759bbca1c35c2f4657eb6378f',
|
// corpId: 'ding267474e759bbca1c35c2f4657eb6378f',
|
||||||
onSuccess (res) {
|
// onSuccess (res) {
|
||||||
console.log('result===', res)
|
// console.log('result===', res)
|
||||||
_this.dingCode = res
|
// _this.dingCode = res
|
||||||
resolve()
|
// resolve()
|
||||||
},
|
// },
|
||||||
onFail (err) {
|
// onFail (err) {
|
||||||
console.log('err===', err)
|
// console.log('err===', err)
|
||||||
_this.dingCode = err
|
// _this.dingCode = err
|
||||||
resolve()
|
// resolve()
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
},
|
// },
|
||||||
// 钉钉免登录
|
// 钉钉免登录
|
||||||
async handleDingtalkLogin (val = this.dingCode) {
|
async handleDingtalkLogin (val = this.dingCode) {
|
||||||
const res = await apiDingtalkLogin(val)
|
const res = await apiDingtalkLogin(val)
|
||||||
|
|||||||
BIN
src/assets/img/default.jpg
Normal file
BIN
src/assets/img/default.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
@ -2,7 +2,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="header-title">
|
<div class="header-title">
|
||||||
<div class="header-title-img">
|
<div class="header-title-img">
|
||||||
<img onerror="javascript:this.src='/static/default.jpg';" :src="obj.src|| ''" alt="">
|
<img onerror="javascript:this.src='@/assets/img/default.jpg';" :src="obj.src|| ''" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="header-title-right commonFont">
|
<div class="header-title-right commonFont">
|
||||||
<span style="font-size:14px;">{{obj.name || "熊成强"}}</span>
|
<span style="font-size:14px;">{{obj.name || "熊成强"}}</span>
|
||||||
|
|||||||
@ -22,9 +22,9 @@
|
|||||||
<div>{{isNav}}---{{this.userInfo.realName}}</div>
|
<div>{{isNav}}---{{this.userInfo.realName}}</div>
|
||||||
<div class="navBar-right">
|
<div class="navBar-right">
|
||||||
<span>{{this.userInfo.realName}}</span><span>{{this.userInfo}}</span><span>熊承强</span>
|
<span>{{this.userInfo.realName}}</span><span>{{this.userInfo}}</span><span>熊承强</span>
|
||||||
<img src="/static/default.jpg" />
|
<img src="@/assets/img/default.jpg" />
|
||||||
<img src="../../..//static/default.jpg" />
|
<!-- <img src="../../../@/assets/img/default.jpg" /> -->
|
||||||
<img onerror="javascript:this.src='/static/default.jpg';" :src="this.userInfo.avatar || ''" alt="">
|
<!-- <img onerror="javascript:this.src='@/assets/img/default.jpg';" :src="this.userInfo.avatar || ''" alt=""> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -91,7 +91,7 @@
|
|||||||
<div class="performance-content-jilu-item-content">
|
<div class="performance-content-jilu-item-content">
|
||||||
<div class="performance-content-jilu-item-content-img">
|
<div class="performance-content-jilu-item-content-img">
|
||||||
<img
|
<img
|
||||||
onerror="javascript:this.src='/static/default.jpg';" :src="i.avatar|| ''"
|
onerror="javascript:this.src='@/assets/img/default.jpg';" :src="i.avatar|| ''"
|
||||||
alt=""
|
alt=""
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<img
|
<img
|
||||||
:src="scope.row.avatar"
|
:src="scope.row.avatar"
|
||||||
onerror="javascript:this.src='/static/default.jpg';"
|
onerror="javascript:this.src='@/assets/img/default.jpg';"
|
||||||
class="todo-content-right-avatar"
|
class="todo-content-right-avatar"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user