修改部分项目配置: 主页背景, 注册默认头像

This commit is contained in:
flykhan 2023-03-10 21:01:27 +08:00
parent 18df512a70
commit 8fd376084e
4 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ public class RegisterServiceImpl implements RegisterService {
// 对密码进行加密
String encodedPassword = new BCryptPasswordEncoder().encode(password);
// 默认头像
String photo = "https://typoraflykhan.oss-cn-beijing.aliyuncs.com/202302251824054.png";
String photo = "https://typoraflykhan.oss-cn-beijing.aliyuncs.com/202303102059268.png";
// id 是数据库自增,这里生成新用户只需要将 id 参数写为 null 即可
User user = new User(null, username, encodedPassword, photo, 1500);
userMapper.insert(user);

View File

@ -65,7 +65,7 @@ export default {
<style>
body {
/* 页面背景图片 */
background-image: url("@/assets/images/background.png");
background-image: url("@/assets/images/bg2.jpg");
background-size: cover;
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 KiB

View File

@ -1,7 +1,7 @@
<template>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<router-link class="navbar-brand" :to="{ name: 'home' }">King of Bots</router-link>
<router-link class="navbar-brand" :to="{ name: 'home' }">King of Snakes</router-link>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">