正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| ... | @@ -55,13 +55,14 @@ export default { | ... | @@ -55,13 +55,14 @@ export default { |
| 55 | }, | 55 | }, |
| 56 | data: () => ({ | 56 | data: () => ({ |
| 57 | time: "", | 57 | time: "", |
| 58 | - userImage: require("@/assets/user.png") | 58 | + userImage: require("@/assets/user.png").default |
| 59 | }), | 59 | }), |
| 60 | mounted() { | 60 | mounted() { |
| 61 | this.set_time(); | 61 | this.set_time(); |
| 62 | this.timer = setInterval(() => { | 62 | this.timer = setInterval(() => { |
| 63 | this.set_time(); | 63 | this.set_time(); |
| 64 | }, 60000); | 64 | }, 60000); |
| 65 | + console.log(this.userImage) | ||
| 65 | }, | 66 | }, |
| 66 | methods: { | 67 | methods: { |
| 67 | toggleSideBar() { | 68 | toggleSideBar() { |
| ... | @@ -77,7 +78,7 @@ export default { | ... | @@ -77,7 +78,7 @@ export default { |
| 77 | }); | 78 | }); |
| 78 | }, | 79 | }, |
| 79 | set_time() { | 80 | set_time() { |
| 80 | - this.time = format(new Date(), "YYYY/MM/DD HH:mm"); | 81 | + this.time = format(new Date(), "yyyy/MM/dd HH:mm"); |
| 81 | } | 82 | } |
| 82 | }, | 83 | }, |
| 83 | computed: { | 84 | computed: { | ... | ... |
-
请 注册 或 登录 后发表评论