Commit fafc187d authored by 王明朋's avatar 王明朋

APP头像没有(为null)的话就显示静态图作为头像

parent 46d7e5c8
Pipeline #7709 passed with stage
in 10 seconds
......@@ -52,6 +52,8 @@
</div>
</van-cell-group>
{{userInfo.portrait}}
<!-- 退出系统 -->
<footer class="sign-out">
<van-button type="info" block @click="logout"
......@@ -90,7 +92,7 @@ export default {
],
userInfo: {
//portrait: require("@/assets/myTerritory/touxiang.png"),
portrait: getUserInfo()?getUserInfo().avatar : "xxx",
portrait: getUserInfo()?getUserInfo().avatar : require("@/assets/myTerritory/touxiang.png"),
name: getUserInfo() ? getUserInfo().userName : "xxx",
position: getUserInfo() ? getUserInfo().deptName : "xx部",
// name: "刘华强",
......
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