修改部分项目配置: 主页背景, 注册默认头像
This commit is contained in:
parent
18df512a70
commit
8fd376084e
|
@ -74,7 +74,7 @@ public class RegisterServiceImpl implements RegisterService {
|
||||||
// 对密码进行加密
|
// 对密码进行加密
|
||||||
String encodedPassword = new BCryptPasswordEncoder().encode(password);
|
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 即可
|
// id 是数据库自增,这里生成新用户只需要将 id 参数写为 null 即可
|
||||||
User user = new User(null, username, encodedPassword, photo, 1500);
|
User user = new User(null, username, encodedPassword, photo, 1500);
|
||||||
userMapper.insert(user);
|
userMapper.insert(user);
|
||||||
|
|
|
@ -65,7 +65,7 @@ export default {
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
/* 页面背景图片 */
|
/* 页面背景图片 */
|
||||||
background-image: url("@/assets/images/background.png");
|
background-image: url("@/assets/images/bg2.jpg");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 274 KiB |
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||||
<div class="container">
|
<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">
|
<div class="collapse navbar-collapse" id="navbarText">
|
||||||
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
|
Loading…
Reference in New Issue