File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
22
3- VUE_APP_BASE_URL = ' http://dev.lin.colorful3.com '
3+ VUE_APP_BASE_URL = ' http://dev.koa.7yue.pro/ '
File renamed without changes.
Original file line number Diff line number Diff line change 33 <el-dropdown trigger =" click" >
44 <span class =" el-dropdown-link" >
55 <div class =" nav-avatar" >
6- <img :src =" user.avatar || '../../assets/img/user/user.jpg' " alt =" 头像" >
6+ <img :src =" user.avatar || defaultAvatar " alt =" 头像" >
77 </div >
88 </span >
99 <el-dropdown-menu slot =" dropdown" class =" user-box" >
1010 <div class =" user-info" >
1111 <div class =" avatar" title =" 点击修改头像" >
12- <img :src =" user.avatar || '../../assets/img/user/user.jpg' " alt =" 头像" >
12+ <img :src =" user.avatar || defaultAvatar " alt =" 头像" >
1313 <label class =" mask" >
1414 <i class =" iconfont icon-icon-test" style =" font-size : 20px ;" ></i >
1515 <input
@@ -110,6 +110,7 @@ import User from '@/lin/models/user'
110110import Vue from ' vue'
111111import Croppa from ' vue-croppa'
112112import ' vue-croppa/dist/vue-croppa.css'
113+ import defaultAvatar from ' @/assets/img/user/user.png'
113114
114115Vue .use (Croppa)
115116
@@ -151,6 +152,7 @@ export default {
151152 return {
152153 nickname: null ,
153154 dialogFormVisible: false ,
155+ defaultAvatar,
154156 form: {
155157 old_password: ' ' ,
156158 new_password: ' ' ,
You can’t perform that action at this time.
0 commit comments